public class CacheGetAllOperation extends AbstractNamedOperation implements ReadonlyOperation
CacheGetAllOperationFactory creates this operation.
Functionality: Filters out the partition keys and calls
ICacheRecordStore.getAll(java.util.Set, javax.cache.expiry.ExpiryPolicy)
nameCALL_ID_LOCAL_SKIPPED, GENERIC_PARTITION_ID| Constructor and Description |
|---|
CacheGetAllOperation() |
CacheGetAllOperation(String name,
Set<Data> keys,
javax.cache.expiry.ExpiryPolicy expiryPolicy) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Object |
getResponse() |
String |
getServiceName() |
protected void |
readInternal(ObjectDataInput in) |
void |
run() |
protected void |
toString(StringBuilder sb)
A template method allows for additional information to be passed into the
Operation.toString() method. |
protected void |
writeInternal(ObjectDataOutput out) |
getNameafterRun, beforeRun, returnsResponsegetCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponseHandler, getService, getWaitTimeout, isUrgent, logError, onException, onExecutionFailure, onInvocationException, onSetCallId, readData, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPartitionIdreadData, writeDatapublic CacheGetAllOperation(String name, Set<Data> keys, javax.cache.expiry.ExpiryPolicy expiryPolicy)
public CacheGetAllOperation()
public int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableprotected void toString(StringBuilder sb)
OperationOperation.toString() method. So an Operation
subclass can override this method and add additional debugging content. The default implementation does nothing so
one is not forced to provide an empty implementation.
It is a good practice always to call the super.toString(stringBuffer) when implementing this method to make sure
that the super class can inject content if needed.toString in class AbstractNamedOperationsb - the StringBuilder to add the debug info to.protected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class AbstractNamedOperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class AbstractNamedOperationIOExceptionpublic String getServiceName()
getServiceName in class Operationpublic Object getResponse()
getResponse in class AbstractOperationpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.