public abstract class MapOperation extends AbstractNamedOperation implements IdentifiedDataSerializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
createRecordStoreOnDemand |
protected MapContainer |
mapContainer |
protected MapEventPublisher |
mapEventPublisher |
protected MapService |
mapService |
protected MapServiceContext |
mapServiceContext |
protected RecordStore |
recordStore |
name
GENERIC_PARTITION_ID
Constructor and Description |
---|
MapOperation() |
MapOperation(String name) |
Modifier and Type | Method and Description |
---|---|
void |
beforeRun() |
protected void |
evict(Data excludedKey) |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
String |
getServiceName() |
long |
getThreadId() |
void |
innerBeforeRun() |
protected void |
invalidateAllKeysInNearCaches()
This method helps to add clearing near-cache event only from one-partition
which matches partition-id of the map-name.
|
protected void |
invalidateNearCache(Data key) |
protected void |
invalidateNearCache(List<Data> keys) |
protected boolean |
isPostProcessing(RecordStore recordStore) |
void |
setMapContainer(MapContainer mapContainer) |
void |
setMapService(MapService mapService) |
void |
setThreadId(long threadId) |
getName, readInternal, toString, writeInternal
afterRun, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, returnsResponse, run, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
readData, writeData
protected transient MapService mapService
protected transient MapContainer mapContainer
protected transient MapServiceContext mapServiceContext
protected transient MapEventPublisher mapEventPublisher
protected transient RecordStore recordStore
protected transient boolean createRecordStoreOnDemand
public MapOperation()
public MapOperation(String name)
public void setMapService(MapService mapService)
public void setMapContainer(MapContainer mapContainer)
public void beforeRun() throws Exception
public String getServiceName()
getServiceName
in class Operation
protected boolean isPostProcessing(RecordStore recordStore)
public void setThreadId(long threadId)
public long getThreadId()
protected final void invalidateNearCache(Data key)
protected final void invalidateAllKeysInNearCaches()
protected void evict(Data excludedKey)
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.