All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.daos.obj.OpenMode Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
/*
 * (C) Copyright 2018-2021 Intel Corporation.
 *
 * SPDX-License-Identifier: BSD-2-Clause-Patent
 */

package io.daos.obj;

public enum OpenMode {
  UNKNOWN(0),
  // shared read
  DAOS_OO_RO(1 << 1),
  // shared read & write, no cache for write
  DAOS_OO_RW(1 << 2),
  // exclusive write, data can be cached
  DAOS_OO_EXCL(1 << 3),
  // unsupported: random I/O
  DAOS_OO_IO_RAND(1 << 4),
  // unsupported sequential I/O
  DAOS_OO_IO_SEQ(1 << 5);

  private int value;

  OpenMode(int value) {
    this.value = value;
  }

  public int getValue() {
    return value;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy