public class CacheOperationContext extends Object implements Serializable
| Constructor and Description |
|---|
CacheOperationContext()
Constructor with default values.
|
CacheOperationContext(boolean skipStore,
UUID subjId,
boolean keepBinary,
javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean noRetries,
Byte dataCenterId) |
| Modifier and Type | Method and Description |
|---|---|
Byte |
dataCenterId()
Gets data center ID.
|
javax.cache.expiry.ExpiryPolicy |
expiry() |
CacheOperationContext |
forSubjectId(UUID subjId)
|
boolean |
hasDataCenterId() |
boolean |
isKeepBinary() |
CacheOperationContext |
keepBinary()
|
boolean |
noRetries() |
CacheOperationContext |
setNoRetries(boolean noRetries) |
CacheOperationContext |
setSkipStore(boolean skipStore)
|
boolean |
skipStore() |
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
UUID subjId,
boolean keepBinary,
@Nullable
javax.cache.expiry.ExpiryPolicy expiryPlc,
boolean noRetries,
@Nullable
Byte dataCenterId)
skipStore - Skip store flag.subjId - Subject ID.keepBinary - Keep binary flag.expiryPlc - Expiry policy.dataCenterId - Data center id.public boolean isKeepBinary()
public boolean hasDataCenterId()
True if data center id is set otherwise false.public CacheOperationContext keepBinary()
@Nullable public UUID subjectId()
@Nullable public Byte dataCenterId()
public CacheOperationContext forSubjectId(UUID subjId)
subjId - Subject id.public boolean skipStore()
public CacheOperationContext setSkipStore(boolean skipStore)
skipStore - Skip store flag.@Nullable public 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 boolean noRetries()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.9.0 Release Date : March 2 2017