public abstract class KeyValueOperationContext extends KeyOperationContext
OperationContext.OperationCode
Constructor and Description |
---|
KeyValueOperationContext(Object key,
Object value,
boolean isObject)
Constructor for the operation.
|
KeyValueOperationContext(Object key,
Object value,
boolean isObject,
boolean postOperation)
Constructor for the operation.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getCallbackArg, getKey, getOperationCode, isPostOperation, setCallbackArg
isClientUpdate, isClientUpdate
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 updatespublic 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 arrayCopyright © 1997-2017 Pivotal Software, Inc. All rights reserved.