public abstract class QueueOperation extends Operation implements PartitionAwareOperation, IdentifiedDataSerializable
AddAllOperation.| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected Object |
response |
CALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID| Modifier | Constructor and Description |
|---|---|
protected |
QueueOperation() |
protected |
QueueOperation(String name) |
protected |
QueueOperation(String name,
long timeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
void |
beforeRun() |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
String |
getName() |
protected QueueContainer |
getOrCreateContainer() |
protected QueueService |
getQueueService() |
Object |
getResponse() |
String |
getServiceName() |
boolean |
hasListener() |
void |
publishEvent(ItemEventType eventType,
Data data) |
protected void |
readInternal(ObjectDataInput in) |
boolean |
returnsResponse() |
protected void |
writeInternal(ObjectDataOutput out) |
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponseHandler, getService, getWaitTimeout, isUrgent, logError, onException, onExecutionFailure, onInvocationException, onSetCallId, readData, run, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdgetIdreadData, writeDataprotected QueueOperation()
protected QueueOperation(String name)
protected QueueOperation(String name, long timeoutMillis)
protected final QueueContainer getOrCreateContainer()
public boolean returnsResponse()
returnsResponse in class Operationpublic final Object getResponse()
getResponse in class Operationpublic final String getServiceName()
getServiceName in class Operationpublic final String getName()
public void afterRun()
throws Exception
public void beforeRun()
throws Exception
public boolean hasListener()
public void publishEvent(ItemEventType eventType, Data data)
protected QueueService getQueueService()
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class OperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class OperationIOExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.