public abstract class KeyOperationContext extends OperationContext
OperationContext.OperationCode.DESTROY
and OperationContext.OperationCode.CONTAINS_KEY.OperationContext.OperationCode| Constructor and Description |
|---|
KeyOperationContext(Object key)
Constructor for the operation.
|
KeyOperationContext(Object key,
boolean postOperation)
Constructor for the operation.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCallbackArg()
Get the callback argument object for this operation.
|
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(Object callbackArg)
Set the callback argument object for this operation.
|
isClientUpdate, isClientUpdatepublic KeyOperationContext(Object key)
key - the key for this operationpublic KeyOperationContext(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 OperationContextpublic Object getKey()
public Object getCallbackArg()
public void setCallbackArg(Object callbackArg)
callbackArg - the callback argument object for this operation.Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.