public class CacheMergeOperation
extends com.hazelcast.spi.impl.AbstractNamedOperation
implements com.hazelcast.cache.impl.operation.MutableOperation, com.hazelcast.spi.impl.MutatingOperation
SplitBrainMergePolicy.| Modifier and Type | Field and Description |
|---|---|
protected HiDensityCacheRecordStore |
cache |
protected EnterpriseCacheService |
cacheService |
protected int |
completionId |
protected boolean |
dontCreateCacheRecordStoreIfNotExist |
protected com.hazelcast.memory.NativeOutOfMemoryError |
oome |
protected int |
partitionId |
protected Object |
response |
protected boolean |
runCompleted |
protected EnterpriseSerializationService |
serializationService |
| Constructor and Description |
|---|
CacheMergeOperation() |
CacheMergeOperation(String name,
List<com.hazelcast.spi.merge.SplitBrainMergeTypes.CacheMergeTypes> mergingEntries,
com.hazelcast.spi.merge.SplitBrainMergePolicy<com.hazelcast.nio.serialization.Data,com.hazelcast.spi.merge.SplitBrainMergeTypes.CacheMergeTypes> policy) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRun() |
void |
beforeRun() |
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() |
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 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 void beforeRunInternal()
public void runInternal()
public boolean shouldBackup()
shouldBackup in interface com.hazelcast.spi.BackupAwareOperationpublic 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 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.OperationExceptionpublic final void run()
throws Exception
run in class com.hazelcast.spi.OperationExceptionpublic void afterRun()
throws Exception
afterRun in class com.hazelcast.spi.OperationExceptionpublic void onExecutionFailure(Throwable e)
onExecutionFailure in class com.hazelcast.spi.Operationprotected final void dispose()
protected void disposeInternal(EnterpriseSerializationService serializationService)
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.