public class CacheOperationContext extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DFLT_ALLOW_ATOMIC_OPS_IN_TX |
| Constructor and Description |
|---|
CacheOperationContext()
Constructor with default values.
|
CacheOperationContext(boolean skipStore,
@Nullable UUID subjId,
boolean keepBinary,
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean noRetries,
@Nullable Byte dataCenterId,
boolean recovery,
boolean readRepair,
boolean allowAtomicOpsInTx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowedAtomicOpsInTx() |
@Nullable Byte |
dataCenterId()
Gets data center ID.
|
@Nullable javax.cache.expiry.ExpiryPolicy |
expiry() |
CacheOperationContext |
forSubjectId(UUID subjId)
|
boolean |
hasDataCenterId() |
boolean |
isKeepBinary() |
CacheOperationContext |
keepBinary()
|
boolean |
noRetries() |
boolean |
readRepair() |
boolean |
recovery() |
CacheOperationContext |
setAllowAtomicOpsInTx() |
CacheOperationContext |
setDataCenterId(byte dataCenterId) |
CacheOperationContext |
setNoRetries(boolean noRetries) |
CacheOperationContext |
setReadRepair(boolean readRepair) |
CacheOperationContext |
setRecovery(boolean recovery) |
CacheOperationContext |
setSkipStore(boolean skipStore)
|
boolean |
skipStore() |
@Nullable UUID |
subjectId()
Gets client ID for which this projection was created.
|
String |
toString() |
CacheOperationContext |
withExpiryPolicy(javax.cache.expiry.ExpiryPolicy plc)
|
public CacheOperationContext()
public CacheOperationContext(boolean skipStore,
@Nullable
@Nullable UUID subjId,
boolean keepBinary,
@Nullable
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean noRetries,
@Nullable
@Nullable Byte dataCenterId,
boolean recovery,
boolean readRepair,
boolean allowAtomicOpsInTx)
skipStore - Skip store flag.subjId - Subject ID.keepBinary - Keep binary flag.expiryPlc - Expiry policy.dataCenterId - Data center id.readRepair - Read-repair flag.public boolean isKeepBinary()
public boolean hasDataCenterId()
True if data center id is set otherwise false.public CacheOperationContext keepBinary()
@Nullable public @Nullable UUID subjectId()
@Nullable public @Nullable Byte dataCenterId()
public CacheOperationContext forSubjectId(UUID subjId)
subjId - Subject id.public boolean skipStore()
public CacheOperationContext setSkipStore(boolean skipStore)
skipStore - Skip store flag.@Nullable public @Nullable javax.cache.expiry.ExpiryPolicy expiry()
ExpiryPolicy associated with this projection.public CacheOperationContext withExpiryPolicy(javax.cache.expiry.ExpiryPolicy plc)
plc - ExpiryPolicy to associate with this projection.public CacheOperationContext setNoRetries(boolean noRetries)
noRetries - No retries flag.public CacheOperationContext setDataCenterId(byte dataCenterId)
dataCenterId - Data center id.public CacheOperationContext setRecovery(boolean recovery)
recovery - Recovery flag.public CacheOperationContext setReadRepair(boolean readRepair)
readRepair - Read Repair flag.public boolean recovery()
public boolean readRepair()
public boolean noRetries()
public CacheOperationContext setAllowAtomicOpsInTx()
public boolean allowedAtomicOpsInTx()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021