Class PutOperationContext
java.lang.Object
org.apache.geode.cache.operations.OperationContext
org.apache.geode.cache.operations.KeyOperationContext
org.apache.geode.cache.operations.KeyValueOperationContext
org.apache.geode.cache.operations.PutOperationContext
Deprecated.
Encapsulates an
OperationContext.OperationCode.PUT
region operation having both key and value objects for for both the pre-operation case and for
post-operation updates.- Since:
- GemFire 5.5
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.geode.cache.operations.OperationContext
OperationContext.OperationCode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteDeprecated.Indicates that the operation results in a create of the key.static final byteDeprecated.Indicates that it is not known whether the operation results in a create or in an update.static final byteDeprecated.Indicates that the operation results in an update of the key. -
Constructor Summary
ConstructorsConstructorDescriptionPutOperationContext(Object key, Object value, boolean isObject) Deprecated.Constructor for the operation.PutOperationContext(Object key, Object value, boolean isObject, boolean postOperation) Deprecated.Constructor for the operation.PutOperationContext(Object key, Object value, boolean isObject, byte opType, boolean isPostOperation) Deprecated.Constructor for the operation. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the operation associated with theOperationContextobject.byteDeprecated.Return whether the operation is a create or update or unknown.Methods inherited from class org.apache.geode.cache.operations.KeyValueOperationContext
getDeserializedValue, getSerializedValue, getValue, isObject, setSerializedValue, setValueMethods inherited from class org.apache.geode.cache.operations.KeyOperationContext
getCallbackArg, getKey, isPostOperation, setCallbackArg, setPostOperationMethods inherited from class org.apache.geode.cache.operations.OperationContext
isClientUpdate, isClientUpdate
-
Field Details
-
UNKNOWN
public static final byte UNKNOWNDeprecated.Indicates that it is not known whether the operation results in a create or in an update. The authorization callback should explicitly use theRegion.containsKey(java.lang.Object)method to determine it when required.- See Also:
-
CREATE
public static final byte CREATEDeprecated.Indicates that the operation results in a create of the key.- See Also:
-
UPDATE
public static final byte UPDATEDeprecated.Indicates that the operation results in an update of the key.- See Also:
-
-
Constructor Details
-
PutOperationContext
Deprecated.Constructor for the operation.- Parameters:
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 array- Since:
- GemFire 6.5
-
PutOperationContext
Deprecated.Constructor for the operation.- Parameters:
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 updates- Since:
- GemFire 6.5
-
PutOperationContext
public PutOperationContext(Object key, Object value, boolean isObject, byte opType, boolean isPostOperation) Deprecated.Constructor for the operation.- Parameters:
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 arrayopType- flag to indicate whether the operation is create/update or unknownisPostOperation- true if the context is at the time of sending updates- Since:
- GemFire 6.5
-
-
Method Details
-
getOperationCode
Deprecated.Return the operation associated with theOperationContextobject.- Specified by:
getOperationCodein classKeyOperationContext- Returns:
OperationCode.PUT.
-
getOpType
public byte getOpType()Deprecated.Return whether the operation is a create or update or unknown. The user should check againstCREATE,UPDATE,UNKNOWN. For theUNKNOWNcase, the authorization callback should explicitly invokeRegion.containsKey(java.lang.Object)to determine if it is create or update when required.
-
ResourcePermissioninstead