ResourcePermission
instead@Deprecated public class PutOperationContext extends KeyValueOperationContext
OperationContext.OperationCode.PUT
region operation having both key and value objects for for both the pre-operation case and for
post-operation updates.OperationContext.OperationCode
Modifier and Type | Field and Description |
---|---|
static byte |
CREATE
Deprecated.
Indicates that the operation results in a create of the key.
|
static byte |
UNKNOWN
Deprecated.
Indicates that it is not known whether the operation results in a create or in an update.
|
static byte |
UPDATE
Deprecated.
Indicates that the operation results in an update of the key.
|
Constructor and Description |
---|
PutOperationContext(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.
|
Modifier and Type | Method and Description |
---|---|
OperationContext.OperationCode |
getOperationCode()
Deprecated.
Return the operation associated with the
OperationContext object. |
byte |
getOpType()
Deprecated.
Return whether the operation is a create or update or unknown.
|
getDeserializedValue, getSerializedValue, getValue, isObject, setSerializedValue, setValue
getCallbackArg, getKey, isPostOperation, setCallbackArg, setPostOperation
isClientUpdate, isClientUpdate
public static final byte UNKNOWN
Region.containsKey(java.lang.Object)
method to determine
it when required.public static final byte CREATE
public static final byte UPDATE
public PutOperationContext(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 PutOperationContext(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 PutOperationContext(Object key, Object value, boolean isObject, byte opType, boolean isPostOperation)
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 updatespublic OperationContext.OperationCode getOperationCode()
OperationContext
object.getOperationCode
in class KeyOperationContext
OperationCode.PUT
.public byte getOpType()
CREATE
,
UPDATE
, UNKNOWN
. For the
UNKNOWN
case, the authorization callback should explicitly invoke
Region.containsKey(java.lang.Object)
to determine if it is create or update when required.