|
GemFire 5.7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.operations.OperationContext
com.gemstone.gemfire.internal.cache.operations.KeyOperationContext
com.gemstone.gemfire.internal.cache.operations.KeyValueOperationContext
com.gemstone.gemfire.cache.operations.PutOperationContext
public class PutOperationContext
Encapsulates an OperationContext.OperationCode.PUT region operation having both key
and value objects for for both the pre-operation case and for post-operation
updates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.gemstone.gemfire.cache.operations.OperationContext |
|---|
OperationContext.OperationCode |
| Field Summary | |
|---|---|
static byte |
CREATE
Indicates that the operation results in a create of the key. |
static byte |
UNKNOWN
Indicates that it is not known whether the operation results in a create or in an update. |
static byte |
UPDATE
Indicates that the operation results in an update of the key. |
| Constructor Summary | |
|---|---|
PutOperationContext(Object key,
byte[] serializedValue,
boolean isObject)
Constructor for the operation. |
|
PutOperationContext(Object key,
byte[] serializedValue,
boolean isObject,
boolean postOperation)
Constructor for the operation. |
|
PutOperationContext(Object key,
byte[] serializedValue,
boolean isObject,
byte opType,
boolean isPostOperation)
Constructor for the operation. |
|
| Method Summary | |
|---|---|
OperationContext.OperationCode |
getOperationCode()
Return the operation associated with the OperationContext
object. |
byte |
getOpType()
Return whether the operation is a create or update or unknown. |
| Methods inherited from class com.gemstone.gemfire.internal.cache.operations.KeyValueOperationContext |
|---|
getSerializedValue, isObject, setSerializedValue |
| Methods inherited from class com.gemstone.gemfire.internal.cache.operations.KeyOperationContext |
|---|
getCallbackArg, getKey, isPostOperation, setCallbackArg |
| Methods inherited from class com.gemstone.gemfire.cache.operations.OperationContext |
|---|
isClientUpdate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte UNKNOWN
Region.containsKey(java.lang.Object) method to determine it when required.
public static final byte CREATE
public static final byte UPDATE
| Constructor Detail |
|---|
public PutOperationContext(Object key,
byte[] serializedValue,
boolean isObject)
key - the key for this operationserializedValue - the serialized value for this operationisObject - true when the value is an object; false when it is a raw
byte array
public PutOperationContext(Object key,
byte[] serializedValue,
boolean isObject,
boolean postOperation)
key - the key for this operationserializedValue - the serialized value for this operationisObject - true when the value is an object; false when it is a raw
byte arraypostOperation - true if the context is at the time of sending updates
public PutOperationContext(Object key,
byte[] serializedValue,
boolean isObject,
byte opType,
boolean isPostOperation)
key - the key for this operationserializedValue - the serialized value for this operationisObject - true when the value is an object; false when it is a raw
byte arrayopType - flag to indicate whether the operation is create/update or
unknownisPostOperation - true if the context is at the time of sending updates| Method Detail |
|---|
public OperationContext.OperationCode getOperationCode()
OperationContext
object.
getOperationCode in class com.gemstone.gemfire.internal.cache.operations.KeyOperationContextOperationCode.PUT.public byte getOpType()
CREATE,
UPDATE, UNKNOWN.
For the UNKNOWN case, the authorization
callback should explicitly invoke Region.containsKey(java.lang.Object) to determine
if it is create or update when required.
CREATE,
UPDATE,
UNKNOWN
|
GemFire 5.7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||