public abstract class KeyBasedCacheOperation extends CacheOperation
Modifier and Type | Field and Description |
---|---|
protected CacheRecord |
backupRecord |
protected Data |
key |
protected Object |
response |
cacheService, dontCreateCacheRecordStoreIfNotExist, recordStore, tenantContext, wanEventPublisher
name
GENERIC_PARTITION_ID
Modifier | Constructor and Description |
---|---|
protected |
KeyBasedCacheOperation() |
protected |
KeyBasedCacheOperation(String name,
Data key) |
protected |
KeyBasedCacheOperation(String name,
Data key,
boolean dontCreateCacheRecordStoreIfNotExist) |
Modifier and Type | Method and Description |
---|---|
Object |
getResponse()
Called if and only if
Operation.returnsResponse() returned true ,
shortly after Operation.run() returns. |
protected void |
readInternal(ObjectDataInput in) |
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, beforeRun, beforeRunInternal, dispose, getAsyncBackupCount, getFactoryId, getServiceName, getServiceNamespace, getSyncBackupCount, logError, onInvocationException, publishWanRemove, publishWanUpdate, publishWanUpdate, publishWanUpdate
getName, toString
call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getService, getWaitTimeout, isUrgent, onExecutionFailure, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, run, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPartitionId
getId
readData, writeData
protected Data key
protected Object response
protected transient CacheRecord backupRecord
public final Object getResponse()
Operation
Operation.returnsResponse()
returned true
,
shortly after Operation.run()
returns.getResponse
in class Operation
protected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal
in class AbstractNamedOperation
IOException
protected void readInternal(ObjectDataInput in) throws IOException
readInternal
in class AbstractNamedOperation
IOException
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.