com.hazelcast.map.impl.operation
Class LockAwareOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.map.impl.operation.KeyBasedMapOperation
          extended by com.hazelcast.map.impl.operation.LockAwareOperation
All Implemented Interfaces:
DataSerializable, RemotePropagatable<Operation>, PartitionAwareOperation, WaitSupport
Direct Known Subclasses:
BasePutOperation, BaseRemoveOperation, EntryOperation, EvictOperation, TxnLockAndGetOperation, TxnUnlockOperation

public abstract class LockAwareOperation
extends KeyBasedMapOperation
implements WaitSupport


Field Summary
 
Fields inherited from class com.hazelcast.map.impl.operation.KeyBasedMapOperation
dataKey, dataValue, mapContainer, mapService, name, partitionContainer, recordStore, threadId, ttl
 
Constructor Summary
protected LockAwareOperation()
           
protected LockAwareOperation(String name, Data dataKey)
           
protected LockAwareOperation(String name, Data dataKey, Data dataValue, long ttl)
           
protected LockAwareOperation(String name, Data dataKey, long ttl)
           
 
Method Summary
 WaitNotifyKey getWaitKey()
           
abstract  void onWaitExpire()
           
 boolean shouldWait()
           
 
Methods inherited from class com.hazelcast.map.impl.operation.KeyBasedMapOperation
afterRun, beforeRun, evict, getKey, getName, getThreadId, getTtl, getValue, innerBeforeRun, invalidateNearCaches, readInternal, returnsResponse, setThreadId, writeInternal
 
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.WaitSupport
getWaitTimeout
 
Methods inherited from interface com.hazelcast.spi.PartitionAwareOperation
getPartitionId
 

Constructor Detail

LockAwareOperation

protected LockAwareOperation(String name,
                             Data dataKey)

LockAwareOperation

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

LockAwareOperation

protected LockAwareOperation(String name,
                             Data dataKey,
                             Data dataValue,
                             long ttl)

LockAwareOperation

protected LockAwareOperation()
Method Detail

shouldWait

public boolean shouldWait()
Specified by:
shouldWait in interface WaitSupport

onWaitExpire

public abstract void onWaitExpire()
Specified by:
onWaitExpire in interface WaitSupport

getWaitKey

public final WaitNotifyKey getWaitKey()
Specified by:
getWaitKey in interface WaitSupport


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