public class CacheEntryProcessorOperation
extends com.hazelcast.spi.impl.AbstractNamedOperation
implements com.hazelcast.cache.impl.operation.MutableOperation, com.hazelcast.spi.impl.MutatingOperation
EntryProcessor is executed on the partition.
ICacheRecordStore provides the required functionality and this
operation is responsible for parameter passing and handling the backup at the end.
| 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 |
|---|
CacheEntryProcessorOperation() |
CacheEntryProcessorOperation(String name,
com.hazelcast.nio.serialization.Data key,
int completionId,
javax.cache.processor.EntryProcessor entryProcessor,
Object... arguments) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
void |
beforeRun() |
protected void |
beforeRunInternal() |
protected void |
dispose() |
protected void |
disposeInternal(EnterpriseSerializationService serializationService) |
int |
getAsyncBackupCount() |
com.hazelcast.spi.Operation |
getBackupOperation() |
int |
getCompletionId() |
int |
getFactoryId() |
int |
getId() |
Object |
getResponse() |
String |
getServiceName() |
com.hazelcast.spi.ServiceNamespace |
getServiceNamespace() |
int |
getSyncBackupCount() |
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) |
boolean |
shouldBackup() |
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, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected 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
protected void disposeInternal(EnterpriseSerializationService serializationService)
public com.hazelcast.spi.Operation getBackupOperation()
getBackupOperation in interface com.hazelcast.spi.BackupAwareOperationprotected 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 final int getSyncBackupCount()
getSyncBackupCount in interface com.hazelcast.spi.BackupAwareOperationpublic final int getAsyncBackupCount()
getAsyncBackupCount in interface com.hazelcast.spi.BackupAwareOperationpublic boolean shouldBackup()
shouldBackup in interface com.hazelcast.spi.BackupAwareOperationpublic 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.