com.hazelcast.concurrent.lock.operations
public class SignalOperation extends AbstractOperation implements BackupAwareOperation
Modifier and Type | Field and Description |
---|---|
protected boolean |
all |
static int |
ANY_THREAD |
protected int |
awaitCount |
protected String |
conditionId |
static long |
DEFAULT_LOCK_TTL |
protected Data |
key |
protected ObjectNamespace |
namespace |
protected Object |
response |
protected long |
threadId |
protected long |
ttl |
CALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID
Constructor and Description |
---|
SignalOperation() |
SignalOperation(ObjectNamespace namespace,
Data key,
long threadId,
String conditionId,
boolean all) |
Modifier and Type | Method and Description |
---|---|
void |
beforeRun() |
int |
getAsyncBackupCount() |
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Data |
getKey() |
protected LockStoreImpl |
getLockStore() |
Object |
getResponse() |
String |
getServiceName() |
int |
getSyncBackupCount() |
protected void |
readInternal(ObjectDataInput in) |
void |
run() |
void |
setAsyncBackup(boolean asyncBackup) |
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, returnsResponse
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getWaitTimeout, isUrgent, logError, onException, readData, setCallerUuid, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAsyncBackupCount, getSyncBackupCount
getPartitionId
readData, writeData
protected boolean all
protected String conditionId
protected transient int awaitCount
public static final long DEFAULT_LOCK_TTL
public static final int ANY_THREAD
protected ObjectNamespace namespace
protected Data key
protected long threadId
protected long ttl
protected transient Object response
public SignalOperation()
public SignalOperation(ObjectNamespace namespace, Data key, long threadId, String conditionId, boolean all)
public void beforeRun() throws Exception
beforeRun
in class AbstractOperation
Exception
public boolean shouldBackup()
BackupAwareOperation
shouldBackup
in interface BackupAwareOperation
public Operation getBackupOperation()
BackupAwareOperation
BackupOperation
responsible for making the backup.getBackupOperation
in interface BackupAwareOperation
BackupOperation
responsible for making the backup.public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
protected void writeInternal(ObjectDataOutput out) throws IOException
IOException
protected void readInternal(ObjectDataInput in) throws IOException
IOException
public final Object getResponse()
getResponse
in class AbstractOperation
protected final LockStoreImpl getLockStore()
public final int getSyncBackupCount()
public final int getAsyncBackupCount()
public final void setAsyncBackup(boolean asyncBackup)
public final String getServiceName()
getServiceName
in class Operation
public final Data getKey()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.