public abstract class KeyOperationContext extends OperationContext
OperationContext.OperationCode.DESTROY
and OperationContext.OperationCode.CONTAINS_KEY.OperationContext.OperationCode| Constructor and Description |
|---|
KeyOperationContext(java.lang.Object key)
Constructor for the operation.
|
KeyOperationContext(java.lang.Object key,
boolean postOperation)
Constructor for the operation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCallbackArg()
Get the callback argument object for this operation.
|
java.lang.Object |
getKey()
Get the key object for this operation.
|
abstract OperationContext.OperationCode |
getOperationCode()
Return the operation associated with the
OperationContext
object. |
boolean |
isPostOperation()
True if the context is for post-operation.
|
void |
setCallbackArg(java.lang.Object callbackArg)
Set the callback argument object for this operation.
|
protected void |
setPostOperation()
Set the post-operation flag to true.
|
isClientUpdate, isClientUpdatepublic KeyOperationContext(java.lang.Object key)
key - the key for this operationpublic KeyOperationContext(java.lang.Object key,
boolean postOperation)
key - the key for this operationpostOperation - true to set the post-operation flagpublic abstract OperationContext.OperationCode getOperationCode()
OperationContext
object.getOperationCode in class OperationContextOperationCode of this operation. This is one of
OperationContext.OperationCode.DESTROY
or OperationContext.OperationCode.CONTAINS_KEY
for KeyOperationContext, and one of
OperationContext.OperationCode.GET or
OperationContext.OperationCode.PUT for
KeyValueOperationContext.public boolean isPostOperation()
isPostOperation in class OperationContextprotected void setPostOperation()
public java.lang.Object getKey()
public java.lang.Object getCallbackArg()
public void setCallbackArg(java.lang.Object callbackArg)
callbackArg - the callback argument object for this operation.