public class CachePutAllOperation extends CacheOperation implements BackupAwareOperation, MutableOperation, MutatingOperation
cacheService, dontCreateCacheRecordStoreIfNotExist, recordStore, tenantContext, wanEventPublishernameGENERIC_PARTITION_IDIGNORE_COMPLETION| Constructor and Description |
|---|
CachePutAllOperation() |
CachePutAllOperation(String cacheNameWithPrefix,
List<Map.Entry<Data,Data>> entries,
javax.cache.expiry.ExpiryPolicy expiryPolicy,
int completionId) |
| Modifier and Type | Method and Description |
|---|---|
Operation |
getBackupOperation()
Creates the
BackupOperation responsible for making the backup. |
int |
getClassId()
Returns type identifier for this class.
|
int |
getCompletionId() |
protected void |
readInternal(ObjectDataInput in) |
void |
run()
Runs the operation.
|
void |
setCompletionId(int completionId) |
boolean |
shouldBackup()
Checks if a backup needs to be made.
|
protected void |
writeInternal(ObjectDataOutput out) |
afterRun, beforeRun, beforeRunInternal, dispose, getAsyncBackupCount, getFactoryId, getServiceName, getServiceNamespace, getSyncBackupCount, logError, onInvocationException, publishWanRemove, publishWanUpdate, publishWanUpdate, publishWanUpdategetName, toStringcall, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getClientCallId, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, onExecutionFailure, onSetCallId, readData, requiresExplicitServiceName, returnsResponse, sendResponse, setCallerUuid, setClientCallId, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAsyncBackupCount, getSyncBackupCountgetPartitionIdreadData, writeDatapublic int getCompletionId()
getCompletionId in interface MutableOperationpublic void setCompletionId(int completionId)
setCompletionId in interface MutableOperationpublic void run()
throws Exception
OperationOperation.run() or Operation.call() method should be implemented; not both.
Runs after wait-support, supposed to do actual operationrun in class OperationExceptionOperation.call()public boolean shouldBackup()
BackupAwareOperationIf a call has not made any change, e.g. an AtomicLong increment with 0, no backup needs to be made.
shouldBackup in interface BackupAwareOperationpublic Operation getBackupOperation()
BackupAwareOperationBackupOperation responsible for making the backup.getBackupOperation in interface BackupAwareOperationBackupOperation responsible for making the backup.public int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableprotected void writeInternal(ObjectDataOutput out) throws IOException
writeInternal in class AbstractNamedOperationIOExceptionprotected void readInternal(ObjectDataInput in) throws IOException
readInternal in class AbstractNamedOperationIOExceptionCopyright © 2019 Hazelcast, Inc.. All rights reserved.