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,
boolean keepBinary,
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean noRetries,
@Nullable Byte dataCenterId,
boolean recovery,
@Nullable ReadRepairStrategy readRepairStrategy,
boolean allowAtomicOpsInTx) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allowAtomicOpsInTx() |
boolean |
allowedAtomicOpsInTx() |
@Nullable Byte |
dataCenterId()
Gets data center ID.
|
@Nullable javax.cache.expiry.ExpiryPolicy |
expiry() |
boolean |
hasDataCenterId() |
boolean |
isKeepBinary() |
CacheOperationContext |
keepBinary()
|
boolean |
noRetries() |
ReadRepairStrategy |
readRepairStrategy() |
boolean |
recovery() |
CacheOperationContext |
setAllowAtomicOpsInTx() |
CacheOperationContext |
setDataCenterId(byte dataCenterId) |
CacheOperationContext |
setNoRetries(boolean noRetries) |
CacheOperationContext |
setReadRepairStrategy(ReadRepairStrategy readRepairStrategy) |
CacheOperationContext |
setRecovery(boolean recovery) |
CacheOperationContext |
setSkipStore(boolean skipStore)
|
boolean |
skipStore() |
String |
toString() |
CacheOperationContext |
withExpiryPolicy(javax.cache.expiry.ExpiryPolicy plc)
|
public static final boolean DFLT_ALLOW_ATOMIC_OPS_IN_TX
public CacheOperationContext()
public CacheOperationContext(boolean skipStore,
boolean keepBinary,
@Nullable
@Nullable javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean noRetries,
@Nullable
@Nullable Byte dataCenterId,
boolean recovery,
@Nullable
@Nullable ReadRepairStrategy readRepairStrategy,
boolean allowAtomicOpsInTx)
skipStore - Skip store flag.keepBinary - Keep binary flag.expiryPlc - Expiry policy.dataCenterId - Data center id.readRepairStrategy - Read-repair strategy.public static final boolean allowAtomicOpsInTx()
public boolean isKeepBinary()
public boolean hasDataCenterId()
True if data center id is set otherwise false.public CacheOperationContext keepBinary()
@Nullable public @Nullable Byte dataCenterId()
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 setReadRepairStrategy(ReadRepairStrategy readRepairStrategy)
readRepairStrategy - Read Repair strategy.public boolean recovery()
public ReadRepairStrategy readRepairStrategy()
public boolean noRetries()
public CacheOperationContext setAllowAtomicOpsInTx()
public boolean allowedAtomicOpsInTx()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023