public enum ReadOptions extends java.lang.Enum<ReadOptions>
Enum Constant and Description |
---|
AsyncReadThrough
If set, indicates that the asynchronous read-through should
be initiated if object does not exist.
|
HServerRequest
Denotes a keylist read (HServer).
|
LockObject
If set, indicates that the Read method should attempt to acquire a
StateServer lock when reading the object.
|
ObjectMayBeLocked
If set, indicates that the situation where the underlying object is
already locked by another StateServer client is anticipated by the
caller, and no ObjectLockedException will be thrown if a lock cannot be
acquried.
|
ObjectMayNotExist
If set, indicates that the situation where the underlying object does not
exist is anticipated by the caller, and no ObjectNotFoundException will
be thrown if the object is not found on the StateServer.
|
ReadDigitalTwinStats
Denotes a special read request which will read a local digital twin stats object.
|
ReadPartition
Denotes a special read which is used to retrieve partition contents (hServer).
|
ReadRemoteObject
If set, an attempt would be made to read through from remote store in case of object not found in local store.
|
ReadRemoteSyncOnly
If this read is to a proxy object, a synchronous read must be performed (v200)
|
ReadThroughPoll
If set, indicates that the caller is doing the read to poll the StateServer in order find out when
a pending read-through operation has been completed by another client
|
ReturnCachedObjectIfValid
If set, indicates that the caller is prepared to query
IsCachedObjectValid on successful return to determine if StateServer
determined that the object corresponding to the byte stream written to
StateServer is unchanged.
|
ReturnClientCacheWithAsyncRefresh
Denotes a read request that will immediately return the client cache value (if present)
and continue the read request asynchronously.
|
SyncReadThrough
If set, indicates that the read-through is initiated on the
host by returning null object.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<ReadOptions> |
getAsyncReadThroughSet()
|
static java.util.Set<ReadOptions> |
getEmptySet()
Return a cached, read-only
Set of ReadOptions with no ReadOptions
set. |
static java.util.Set<ReadOptions> |
getLockObjectSet()
|
static java.util.Set<ReadOptions> |
getObjectMayNotExistSet()
|
static java.util.Set<ReadOptions> |
getReturnCachedObjectIfValidSet()
|
static java.util.Set<ReadOptions> |
getSyncReadThroughSet()
|
static ReadOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadOptions LockObject
public static final ReadOptions ObjectMayBeLocked
public static final ReadOptions ObjectMayNotExist
public static final ReadOptions ReturnCachedObjectIfValid
public static final ReadOptions SyncReadThrough
public static final ReadOptions AsyncReadThrough
public static final ReadOptions ReadThroughPoll
public static final ReadOptions ReadRemoteObject
public static final ReadOptions ReadRemoteSyncOnly
public static final ReadOptions ReadPartition
public static final ReadOptions HServerRequest
public static final ReadOptions ReturnClientCacheWithAsyncRefresh
public static final ReadOptions ReadDigitalTwinStats
public static ReadOptions[] values()
for (ReadOptions c : ReadOptions.values()) System.out.println(c);
public static ReadOptions valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.Set<ReadOptions> getEmptySet()
Set
of ReadOptions
with no ReadOptions
set.Set
of ReadOptions
with no ReadOptions
set.public static java.util.Set<ReadOptions> getObjectMayNotExistSet()
Set
of ReadOptions
containing just the
ObjectMayNotExist
flag.public static java.util.Set<ReadOptions> getReturnCachedObjectIfValidSet()
Set
of ReadOptions
containing just the
ReturnCachedObjectIfValid
flag.public static java.util.Set<ReadOptions> getLockObjectSet()
Set
of ReadOptions
containing just the
LockObject
flag.public static java.util.Set<ReadOptions> getAsyncReadThroughSet()
Set
of ReadOptions
containing just the
AsyncReadThrough
flag.public static java.util.Set<ReadOptions> getSyncReadThroughSet()
Set
of ReadOptions
containing just the
SyncReadThrough
flag.