|
GemFire 6.6 | ||||||||
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.cache.operations.KeyOperationContext
com.gemstone.gemfire.cache.operations.KeyValueOperationContext
public abstract class KeyValueOperationContext
Encapsulates a region operation that requires both key and serialized value for the pre-operation and post-operation cases.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gemstone.gemfire.cache.operations.OperationContext |
---|
OperationContext.OperationCode |
Constructor Summary | |
---|---|
KeyValueOperationContext(Object key,
Object value,
boolean isObject)
Constructor for the operation. |
|
KeyValueOperationContext(Object key,
Object value,
boolean isObject,
boolean postOperation)
Constructor for the operation. |
Method Summary | |
---|---|
byte[] |
getSerializedValue()
Get the serialized value for this operation. |
Object |
getValue()
Get the value for this operation. |
boolean |
isObject()
Return true when the value is an object and not a raw byte array. |
void |
setSerializedValue(byte[] serializedValue,
boolean isObject)
Set the serialized value object for this operation. |
void |
setValue(Object value,
boolean isObject)
Set the result value of the object for this operation. |
Methods inherited from class com.gemstone.gemfire.cache.operations.KeyOperationContext |
---|
getCallbackArg, getKey, getOperationCode, isPostOperation, setCallbackArg |
Methods inherited from class com.gemstone.gemfire.cache.operations.OperationContext |
---|
isClientUpdate, isClientUpdate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyValueOperationContext(Object key, Object value, boolean isObject)
key
- the key for this operationvalue
- the value for this operationisObject
- true when the value is an object; false when it is a raw
byte arraypublic KeyValueOperationContext(Object key, Object value, boolean isObject, boolean postOperation)
key
- the key for this operationvalue
- the 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 updatesMethod Detail |
---|
public byte[] getSerializedValue()
public Object getValue()
public boolean isObject()
public void setSerializedValue(byte[] serializedValue, boolean isObject)
serializedValue
- the serialized value for this operationisObject
- true when the value is an object; false when it is a raw
byte arraypublic void setValue(Object value, boolean isObject)
value
- the result of this operation; can be a serialized byte array
or a deserialized objectisObject
- true when the value is an object (either serialized or
deserialized); false when it is a raw byte array
|
GemFire 6.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |