com.hazelcast.map.impl.operation
public abstract class KeyBasedMapOperation extends Operation implements PartitionAwareOperation, NamedOperation
Modifier and Type | Field and Description |
---|---|
protected Data |
dataKey |
protected Data |
dataValue |
protected MapContainer |
mapContainer |
protected MapService |
mapService |
protected String |
name |
protected PartitionContainer |
partitionContainer |
protected RecordStore |
recordStore |
protected long |
threadId |
protected long |
ttl |
CALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID
Modifier | Constructor and Description |
---|---|
|
KeyBasedMapOperation() |
|
KeyBasedMapOperation(String name,
Data dataKey) |
protected |
KeyBasedMapOperation(String name,
Data dataKey,
Data dataValue) |
protected |
KeyBasedMapOperation(String name,
Data dataKey,
Data dataValue,
long ttl) |
protected |
KeyBasedMapOperation(String name,
Data dataKey,
long ttl) |
Modifier and Type | Method and Description |
---|---|
void |
afterRun() |
void |
beforeRun() |
protected void |
evict(boolean backup) |
Data |
getKey() |
String |
getName()
Returns the name of the distributed data structure.
|
String |
getServiceName() |
long |
getThreadId() |
long |
getTtl() |
Data |
getValue() |
void |
innerBeforeRun() |
protected void |
invalidateNearCaches() |
protected void |
readInternal(ObjectDataInput in) |
boolean |
returnsResponse() |
void |
setThreadId(long threadId) |
protected void |
writeInternal(ObjectDataOutput out) |
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponse, getResponseHandler, getService, getWaitTimeout, isUrgent, logError, onException, readData, run, setCallerUuid, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPartitionId
protected String name
protected Data dataKey
protected long threadId
protected Data dataValue
protected long ttl
protected transient MapService mapService
protected transient MapContainer mapContainer
protected transient PartitionContainer partitionContainer
protected transient RecordStore recordStore
public String getServiceName()
getServiceName
in class Operation
public final String getName()
NamedOperation
getName
in interface NamedOperation
public final Data getKey()
public final long getThreadId()
public final void setThreadId(long threadId)
public final Data getValue()
public final long getTtl()
public final void beforeRun() throws Exception
public void innerBeforeRun()
public void afterRun() throws Exception
public boolean returnsResponse()
returnsResponse
in class Operation
protected final void invalidateNearCaches()
protected void evict(boolean backup)
protected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal
in class Operation
IOException
protected void readInternal(ObjectDataInput in) throws IOException
readInternal
in class Operation
IOException
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.