public class CacheGetOperation
extends com.hazelcast.spi.impl.AbstractNamedOperation
implements com.hazelcast.spi.ReadonlyOperation
null if this cache contains no mapping for the key.| Modifier and Type | Field and Description |
|---|---|
protected HiDensityCacheRecordStore |
cache |
protected EnterpriseCacheService |
cacheService |
protected int |
completionId |
protected boolean |
dontCreateCacheRecordStoreIfNotExist |
protected com.hazelcast.nio.serialization.Data |
key |
protected com.hazelcast.memory.NativeOutOfMemoryError |
oome |
protected int |
partitionId |
protected Object |
response |
protected boolean |
runCompleted |
protected EnterpriseSerializationService |
serializationService |
| Constructor and Description |
|---|
CacheGetOperation() |
CacheGetOperation(String name,
com.hazelcast.nio.serialization.Data key,
javax.cache.expiry.ExpiryPolicy expiryPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
void |
beforeRun() |
protected void |
beforeRunInternal() |
protected void |
dispose() |
protected void |
disposeInternal(EnterpriseSerializationService serializationService) |
int |
getCompletionId() |
int |
getFactoryId() |
int |
getId() |
Object |
getResponse() |
String |
getServiceName() |
com.hazelcast.spi.ServiceNamespace |
getServiceNamespace() |
void |
logError(Throwable e) |
void |
onExecutionFailure(Throwable e) |
static com.hazelcast.nio.serialization.Data |
readHeapOperationData(com.hazelcast.nio.ObjectDataInput in) |
protected void |
readInternal(com.hazelcast.nio.ObjectDataInput in) |
static com.hazelcast.nio.serialization.Data |
readNativeMemoryOperationData(com.hazelcast.nio.ObjectDataInput in) |
boolean |
returnsResponse() |
void |
run() |
protected void |
runInternal() |
void |
setCompletionId(int completionId) |
protected void |
writeInternal(com.hazelcast.nio.ObjectDataOutput out) |
call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, onInvocationException, onSetCallId, readData, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataprotected com.hazelcast.nio.serialization.Data key
protected Object response
protected int completionId
protected transient boolean dontCreateCacheRecordStoreIfNotExist
protected transient EnterpriseSerializationService serializationService
protected transient EnterpriseCacheService cacheService
protected transient HiDensityCacheRecordStore cache
protected transient int partitionId
protected transient com.hazelcast.memory.NativeOutOfMemoryError oome
protected transient boolean runCompleted
public CacheGetOperation()
public CacheGetOperation(String name, com.hazelcast.nio.serialization.Data key, javax.cache.expiry.ExpiryPolicy expiryPolicy)
protected void disposeInternal(EnterpriseSerializationService serializationService)
protected void writeInternal(com.hazelcast.nio.ObjectDataOutput out)
throws IOException
IOExceptionprotected void readInternal(com.hazelcast.nio.ObjectDataInput in)
throws IOException
IOExceptionpublic int getId()
getId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializablepublic int getFactoryId()
getFactoryId in interface com.hazelcast.nio.serialization.IdentifiedDataSerializablepublic String getServiceName()
getServiceName in class com.hazelcast.spi.Operationpublic com.hazelcast.spi.ServiceNamespace getServiceNamespace()
getServiceNamespace in interface com.hazelcast.spi.ServiceNamespaceAwarepublic boolean returnsResponse()
returnsResponse in class com.hazelcast.spi.Operationpublic final Object getResponse()
getResponse in class com.hazelcast.spi.Operationpublic final void beforeRun()
throws Exception
beforeRun in class com.hazelcast.spi.OperationExceptionprotected void beforeRunInternal()
public final void run()
throws Exception
run in class com.hazelcast.spi.OperationExceptionpublic void onExecutionFailure(Throwable e)
onExecutionFailure in class com.hazelcast.spi.Operationprotected final void dispose()
public void logError(Throwable e)
logError in class com.hazelcast.spi.Operationpublic int getCompletionId()
public void setCompletionId(int completionId)
public static com.hazelcast.nio.serialization.Data readHeapOperationData(com.hazelcast.nio.ObjectDataInput in)
throws IOException
IOExceptionpublic static com.hazelcast.nio.serialization.Data readNativeMemoryOperationData(com.hazelcast.nio.ObjectDataInput in)
throws IOException
IOExceptionCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.