@Immutable public class Operation extends Object implements Serializable
CacheEvent.getOperation()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static Operation |
CACHE_CLOSE
A cache close.
|
static Operation |
CACHE_CREATE
A cache create.
|
static Operation |
CACHE_RECONNECT
A cache close triggered by
LossAction.RECONNECT . |
static Operation |
CONTAINS_KEY
A 'check for existence of key' operation.
|
static Operation |
CONTAINS_VALUE
A 'check for existence of value' operation.
|
static Operation |
CONTAINS_VALUE_FOR_KEY
A 'check for existence of value for given key' operation.
|
static Operation |
CREATE
An entry creation.
|
static Operation |
DESTROY
An entry distributed destroy.
|
static Operation |
EVICT_DESTROY
An entry local destroy caused by an eviction.
|
static Operation |
EXPIRE_DESTROY
An entry distributed destroy triggered by expiration
|
static Operation |
EXPIRE_INVALIDATE
An entry distributed invalidate triggered by expiration
|
static Operation |
EXPIRE_LOCAL_DESTROY
An entry local destroy triggered by expiration
|
static Operation |
EXPIRE_LOCAL_INVALIDATE
An entry local invalidate triggered by expiration
|
static Operation |
FORCED_DISCONNECT
A cache close due to being forced out of the distributed system by other members.
|
static Operation |
FUNCTION_EXECUTION
A 'function execution' operation.
|
static Operation |
GET
A 'value for key' operation.
|
static Operation |
GET_ENTRY
A 'entry for key' operation.
|
static Operation |
GET_FOR_REGISTER_INTEREST
A 'get for register interest' operation.
|
static Operation |
INVALIDATE
An entry distributed invalidate.
|
static Operation |
LOCAL_DESTROY
An entry local destroy.
|
static Operation |
LOCAL_INVALIDATE
An entry local invalidate.
|
static Operation |
LOCAL_LOAD_CREATE
An entry creation caused by a local loader
|
static Operation |
LOCAL_LOAD_UPDATE
An entry update caused by a local load.
|
static Operation |
MARKER
A marker operation.
|
static Operation |
NET_LOAD_CREATE
An entry creation caused by a net loader
|
static Operation |
NET_LOAD_UPDATE
An entry update caused by a net load.
|
byte |
ordinal
byte used as ordinal to represent this Operation
|
static Operation |
PUT_IF_ABSENT
An atomic entry creation operation
|
static Operation |
PUTALL_CREATE
An entry creation caused by a putAll invocation
|
static Operation |
PUTALL_UPDATE
An entry update caused by a putAll invocation.
|
static Operation |
REGION_CLEAR
A region clear.
|
static Operation |
REGION_CLOSE
A region close
|
static Operation |
REGION_CREATE
A region create.
|
static Operation |
REGION_DESTROY
A region distributed destroy.
|
static Operation |
REGION_EXPIRE_DESTROY
A region distributed destroy triggered by expiration
|
static Operation |
REGION_EXPIRE_INVALIDATE
A region distributed invalidate triggered by expiration
|
static Operation |
REGION_EXPIRE_LOCAL_DESTROY
A region local destroy triggered by expiration
|
static Operation |
REGION_EXPIRE_LOCAL_INVALIDATE
A region local invalidate triggered by expiration
|
static Operation |
REGION_INVALIDATE
A region distributed invalidate.
|
static Operation |
REGION_LOAD_SNAPSHOT
A region load snapshot.
|
static Operation |
REGION_LOCAL_CLEAR
A region local clear.
|
static Operation |
REGION_LOCAL_DESTROY
A region local destroy.
|
static Operation |
REGION_LOCAL_INVALIDATE
A region local invalidate.
|
static Operation |
REGION_REINITIALIZE
A region destroy triggered by
ResumptionAction.REINITIALIZE . |
static Operation |
REMOVE
An atomic destroy destroy operation
|
static Operation |
REMOVEALL_DESTROY
An entry distributed destroy caused by a removeAll.
|
static Operation |
REPLACE
An atomic update operation
|
static Operation |
SEARCH_CREATE
An entry creation caused by a netsearch
|
static Operation |
SEARCH_UPDATE
An entry update caused by a net search.
|
static Operation |
UPDATE
An entry update.
|
static Operation |
UPDATE_VERSION_STAMP
An internal operation used to update the version stamp of an entry.
|
Modifier and Type | Method and Description |
---|---|
static Operation |
fromOrdinal(byte ordinal)
Return the Operation represented by specified ordinal
|
Operation |
getCorrespondingCreateOp()
Returns the create operation that corresponds to this operation.
|
Operation |
getCorrespondingUpdateOp()
Returns the update operation that corresponds to this operation.
|
boolean |
guaranteesOldValue()
Returns true if this operation is a ConcurrentMap operation that guarantees the old value to be
returned no matter what expense may be incurred in doing so.
|
boolean |
isClear()
Returns true if the operation cleared the region.
|
boolean |
isClose()
Returns true if the operation closed the cache or a region.
|
boolean |
isContainsKey()
Returns true if this operation checks whether given key is present in region.
|
boolean |
isContainsValue()
Returns true if this operation checks whether given value is present in region.
|
boolean |
isContainsValueForKey()
Returns true if this operation checks whether value is present for the given key.
|
boolean |
isCreate()
Returns true if this operation created a new entry.
|
boolean |
isDestroy()
Returns true if the operation destroyed an entry.
|
boolean |
isDistributed()
Returns true if the operation may be distributed.
|
boolean |
isEntry()
Returns true if the operation applies to a single entry.
|
boolean |
isEviction()
Answer true if this operation resulted from eviction
|
boolean |
isExpiration()
Answer true if this operation resulted from expiration.
|
boolean |
isFunctionExecution()
Returns true if this operation is function execution operation.
|
boolean |
isGet()
Returns true if this operation gets the value for given key.
|
boolean |
isGetEntry()
Returns true if this operation gets the entry for given key.
|
boolean |
isGetForRegisterInterest()
Returns true if this operation is a get for register interest.
|
boolean |
isInvalidate()
Returns true if the operation invalidated an entry.
|
boolean |
isLoad()
Returns true if this operation included running a loader.
|
boolean |
isLocal()
Returns true if the operation is limited to the local cache.
|
boolean |
isLocalLoad()
Returns true if this operation included a loader running in this cache.
|
boolean |
isNetLoad()
Returns true if this operation included a loader running that was remote from the cache that
requested it, i.e., a netLoad.
|
boolean |
isNetSearch()
Returns true if this operation included a
netSearch . |
boolean |
isPutAll()
Returns true if this operation was initiated by a putAll.
|
boolean |
isRegion()
Returns true if the operation applies to the entire region.
|
boolean |
isRegionDestroy()
Returns true if the operation destroyed a region.
|
boolean |
isRegionInvalidate()
Returns true if the operation invalidated a region.
|
boolean |
isRemoveAll()
Returns true if this operation was initiated by a removeAll.
|
boolean |
isSearchOrLoad()
Returns true if this operation was a
net search or a load . |
boolean |
isUpdate()
Returns true if this operation updated an existing entry.
|
String |
toString()
Returns a string representation for this operation.
|
@Immutable public static final Operation MARKER
@Immutable public static final Operation CREATE
Region.create(Object, Object)
@Immutable public static final Operation PUTALL_CREATE
@Immutable public static final Operation GET
Region.get(Object)
@Immutable public static final Operation GET_ENTRY
Region.getEntry(Object)
@Immutable public static final Operation CONTAINS_KEY
Region.containsKey(Object)
@Immutable public static final Operation CONTAINS_VALUE
Region.containsValueForKey(Object)
@Immutable public static final Operation CONTAINS_VALUE_FOR_KEY
Region.containsValueForKey(Object)
@Immutable public static final Operation FUNCTION_EXECUTION
FunctionService
@Immutable public static final Operation SEARCH_CREATE
Region.get(Object)
@Immutable public static final Operation LOCAL_LOAD_CREATE
Region.get(Object)
,
CacheLoader
@Immutable public static final Operation NET_LOAD_CREATE
Region.get(Object)
,
CacheLoader
@Immutable public static final Operation UPDATE
Region.put(Object, Object)
@Immutable public static final Operation PUTALL_UPDATE
@Immutable public static final Operation SEARCH_UPDATE
Region.get(Object)
@Immutable public static final Operation LOCAL_LOAD_UPDATE
Region.get(Object)
,
CacheLoader
@Immutable public static final Operation NET_LOAD_UPDATE
Region.get(Object)
,
CacheLoader
@Immutable public static final Operation INVALIDATE
Region.invalidate(Object)
@Immutable public static final Operation LOCAL_INVALIDATE
Region.localInvalidate(Object)
@Immutable public static final Operation DESTROY
Region.destroy(Object)
@Immutable public static final Operation LOCAL_DESTROY
Region.localDestroy(Object)
@Immutable public static final Operation EVICT_DESTROY
Region.localDestroy(Object)
@Immutable public static final Operation REGION_LOAD_SNAPSHOT
Region.loadSnapshot(java.io.InputStream)
@Immutable public static final Operation REGION_LOCAL_DESTROY
Region.localDestroyRegion()
@Immutable public static final Operation REGION_CREATE
@Immutable public static final Operation REGION_CLOSE
Region.close()
@Immutable public static final Operation REGION_DESTROY
Region.destroyRegion()
@Immutable public static final Operation EXPIRE_DESTROY
@Immutable public static final Operation EXPIRE_LOCAL_DESTROY
@Immutable public static final Operation EXPIRE_INVALIDATE
@Immutable public static final Operation EXPIRE_LOCAL_INVALIDATE
@Immutable public static final Operation REGION_EXPIRE_DESTROY
@Immutable public static final Operation REGION_EXPIRE_LOCAL_DESTROY
@Immutable public static final Operation REGION_EXPIRE_INVALIDATE
@Immutable public static final Operation REGION_EXPIRE_LOCAL_INVALIDATE
@Immutable public static final Operation REGION_LOCAL_INVALIDATE
Region.localInvalidateRegion()
@Immutable public static final Operation REGION_INVALIDATE
Region.invalidateRegion()
@Immutable public static final Operation REGION_CLEAR
Region.clear()
@Immutable public static final Operation REGION_LOCAL_CLEAR
Region.localClear()
@Immutable public static final Operation CACHE_CREATE
CacheFactory.create()
@Immutable public static final Operation CACHE_CLOSE
RegionService.close()
@Immutable public static final Operation FORCED_DISCONNECT
@Immutable public static final Operation REGION_REINITIALIZE
ResumptionAction.REINITIALIZE
.ResumptionAction.REINITIALIZE
@Immutable public static final Operation CACHE_RECONNECT
LossAction.RECONNECT
.LossAction.RECONNECT
@Immutable public static final Operation PUT_IF_ABSENT
ConcurrentMap.putIfAbsent(Object, Object)
@Immutable public static final Operation REPLACE
ConcurrentMap.replace(Object, Object, Object)
@Immutable public static final Operation REMOVE
ConcurrentMap.remove(Object, Object)
@Immutable public static final Operation UPDATE_VERSION_STAMP
@Immutable public static final Operation REMOVEALL_DESTROY
Region.removeAll(java.util.Collection)
@Immutable public static final Operation GET_FOR_REGISTER_INTEREST
public final byte ordinal
public static Operation fromOrdinal(byte ordinal)
ordinal
- the ordinal representation of an Operationpublic boolean isCreate()
public boolean isUpdate()
public boolean isGet()
public boolean isContainsKey()
public boolean isContainsValue()
public boolean isContainsValueForKey()
public boolean isFunctionExecution()
public boolean isGetEntry()
public boolean isGetForRegisterInterest()
public boolean isInvalidate()
public boolean isDestroy()
public boolean isClear()
public boolean isClose()
public boolean isPutAll()
public boolean isRemoveAll()
Region.removeAll(java.util.Collection)
public boolean isRegionInvalidate()
public boolean isRegionDestroy()
public boolean isRegion()
public boolean isLocal()
public boolean isDistributed()
public boolean isEntry()
public boolean isExpiration()
public boolean isEviction()
public boolean isLocalLoad()
netSearch
.
If this operation is for a Partitioned Region, then true will be returned if the loader ran in
the same VM as where the data is hosted. If true is returned, and
CacheEvent.isOriginRemote()
is true, it means the data is not hosted locally, but the
loader was run local to the data.public boolean isNetLoad()
public boolean isLoad()
public boolean isNetSearch()
netSearch
. If the netSearch
was invoked by a loader however, this will return false and isLocalLoad()
or
isNetLoad()
will return true instead.public boolean isSearchOrLoad()
net search
or a load
.public boolean guaranteesOldValue()
public Operation getCorrespondingUpdateOp()
this
is returned.public Operation getCorrespondingCreateOp()
this
is returned.