com.hazelcast.map.impl.operation
Class KeyBasedMapOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.map.impl.operation.KeyBasedMapOperation
All Implemented Interfaces:
DataSerializable, RemotePropagatable<Operation>, PartitionAwareOperation
Direct Known Subclasses:
ContainsKeyOperation, EntryBackupOperation, GetEntryViewOperation, GetOperation, LockAwareOperation, PutBackupOperation, RemoveBackupOperation, TxnPrepareBackupOperation, TxnPrepareOperation, TxnRollbackBackupOperation, TxnRollbackOperation, TxnUnlockBackupOperation

public abstract class KeyBasedMapOperation
extends Operation
implements PartitionAwareOperation


Field Summary
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
           
 
Constructor Summary
  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)
           
 
Method Summary
 void afterRun()
           
 void beforeRun()
           
protected  void evict(boolean backup)
           
 Data getKey()
           
 String getName()
           
 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)
           
 
Methods inherited from class com.hazelcast.spi.Operation
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getExecutorName, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponse, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, onException, readData, run, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.spi.PartitionAwareOperation
getPartitionId
 

Field Detail

name

protected String name

dataKey

protected Data dataKey

threadId

protected long threadId

dataValue

protected Data dataValue

ttl

protected long ttl

mapService

protected transient MapService mapService

mapContainer

protected transient MapContainer mapContainer

partitionContainer

protected transient PartitionContainer partitionContainer

recordStore

protected transient RecordStore recordStore
Constructor Detail

KeyBasedMapOperation

public KeyBasedMapOperation()

KeyBasedMapOperation

public KeyBasedMapOperation(String name,
                            Data dataKey)

KeyBasedMapOperation

protected KeyBasedMapOperation(String name,
                               Data dataKey,
                               Data dataValue)

KeyBasedMapOperation

protected KeyBasedMapOperation(String name,
                               Data dataKey,
                               long ttl)

KeyBasedMapOperation

protected KeyBasedMapOperation(String name,
                               Data dataKey,
                               Data dataValue,
                               long ttl)
Method Detail

getName

public final String getName()

getKey

public final Data getKey()

getThreadId

public final long getThreadId()

setThreadId

public final void setThreadId(long threadId)

getValue

public final Data getValue()

getTtl

public final long getTtl()

beforeRun

public final void beforeRun()
                     throws Exception
Specified by:
beforeRun in class Operation
Throws:
Exception

innerBeforeRun

public void innerBeforeRun()

afterRun

public void afterRun()
              throws Exception
Specified by:
afterRun in class Operation
Throws:
Exception

returnsResponse

public boolean returnsResponse()
Specified by:
returnsResponse in interface RemotePropagatable<Operation>
Specified by:
returnsResponse in class Operation

invalidateNearCaches

protected final void invalidateNearCaches()

evict

protected void evict(boolean backup)

writeInternal

protected void writeInternal(ObjectDataOutput out)
                      throws IOException
Specified by:
writeInternal in class Operation
Throws:
IOException

readInternal

protected void readInternal(ObjectDataInput in)
                     throws IOException
Specified by:
readInternal in class Operation
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.