|
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
public abstract class KeyOperationContext
Encapsulates a region operation that requires only a key object for the
pre-operation case. The operations this class encapsulates are
OperationContext.OperationCode.DESTROY
and OperationContext.OperationCode.CONTAINS_KEY.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.gemstone.gemfire.cache.operations.OperationContext |
|---|
OperationContext.OperationCode |
| Constructor Summary | |
|---|---|
KeyOperationContext(Object key)
Constructor for the operation. |
|
KeyOperationContext(Object key,
boolean postOperation)
Constructor for the operation. |
|
| Method Summary | |
|---|---|
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. |
| 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 KeyOperationContext(Object key)
key - the key for this operation
public KeyOperationContext(Object key,
boolean postOperation)
key - the key for this operationpostOperation - true to set the post-operation flag| Method Detail |
|---|
public 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.
|
GemFire 6.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||