ResourcePermission instead@Deprecated public abstract class KeyValueOperationContext extends KeyOperationContext
OperationContext.OperationCode| Constructor and Description |
|---|
KeyValueOperationContext(Object key,
Object value,
boolean isObject)
Deprecated.
Constructor for the operation.
|
KeyValueOperationContext(Object key,
Object value,
boolean isObject,
boolean postOperation)
Deprecated.
Constructor for the operation.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getDeserializedValue()
Deprecated.
Get the deserialized value for this operation.
|
byte[] |
getSerializedValue()
Deprecated.
Get the serialized value for this operation.
|
Object |
getValue()
Deprecated.
Get the value for this operation.
|
boolean |
isObject()
Deprecated.
Return true when the value is an object and not a raw byte array.
|
void |
setSerializedValue(byte[] serializedValue,
boolean isObject)
Deprecated.
Set the serialized value object for this operation.
|
void |
setValue(Object value,
boolean isObject)
Deprecated.
Set the result value of the object for this operation.
|
getCallbackArg, getKey, getOperationCode, isPostOperation, setCallbackArg, setPostOperationisClientUpdate, isClientUpdatepublic 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 updatespublic byte[] getSerializedValue()
public Object getDeserializedValue() throws SerializationException
SerializationException - if deserialization of the value failspublic Object getValue()
isObject(). If you need to
deserialize the serialized bytes use DataSerializer.readObject(java.io.DataInput) or
you can just call getDeserializedValue().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