com.hazelcast.cache.impl.operation
Class CacheRemoveAllOperation
java.lang.Object
   com.hazelcast.spi.Operation
com.hazelcast.spi.Operation
       com.hazelcast.spi.AbstractOperation
com.hazelcast.spi.AbstractOperation
           com.hazelcast.spi.impl.AbstractNamedOperation
com.hazelcast.spi.impl.AbstractNamedOperation
               com.hazelcast.cache.impl.operation.CacheRemoveAllOperation
com.hazelcast.cache.impl.operation.CacheRemoveAllOperation
- All Implemented Interfaces: 
- DataSerializable, IdentifiedDataSerializable, BackupAwareOperation, RemotePropagatable<Operation>, PartitionAwareOperation
- public class CacheRemoveAllOperation 
- extends AbstractNamedOperation- implements BackupAwareOperation
TODO add a proper JavaDoc
 
 
 
 
 
 
| Methods inherited from class com.hazelcast.spi.Operation | 
| getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getExecutorName, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, onException, readData, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData | 
 
 
 
 
CacheRemoveAllOperation
public CacheRemoveAllOperation()
CacheRemoveAllOperation
public CacheRemoveAllOperation(String name,
                               Set<Data> keys,
                               int completionId)
shouldBackup
public boolean shouldBackup()
- Description copied from interface: BackupAwareOperation
- Checks if a backup needs to be made.
 
 If a call has not made any change, e.g. an AtomicLong increment with 0, no backup needs to be made.
 
- 
- Specified by:
- shouldBackupin interface- BackupAwareOperation
 
- 
- Returns:
- true if a backup needs to be made, false otherwise.
 
getSyncBackupCount
public final int getSyncBackupCount()
- Description copied from interface: BackupAwareOperation
- The synchronous backup count. If no backups need to be made, 0  is returned.
 
- 
- Specified by:
- getSyncBackupCountin interface- BackupAwareOperation
 
- 
- Returns:
- the synchronous backup count.
 
getAsyncBackupCount
public final int getAsyncBackupCount()
- Description copied from interface: BackupAwareOperation
- The asynchronous backup count. If no asynchronous backups need to be made, 0 is returned.
 
- 
- Specified by:
- getAsyncBackupCountin interface- BackupAwareOperation
 
- 
- Returns:
- the asynchronous backup count.
 
getBackupOperation
public Operation getBackupOperation()
- Description copied from interface: BackupAwareOperation
- Creates the BackupOperationresponsible for making the backup.
 
- 
- Specified by:
- getBackupOperationin interface- BackupAwareOperation
 
- 
- Returns:
- the created BackupOperation.
 
getId
public int getId()
- Description copied from interface: IdentifiedDataSerializable
- Returns type identifier for this class. Id should be unique per DataSerializableFactory.
 
- 
- Specified by:
- getIdin interface- IdentifiedDataSerializable
 
- 
- Returns:
- type id
 
beforeRun
public void beforeRun()
               throws Exception
- 
- Overrides:
- beforeRunin class- AbstractOperation
 
- 
- Throws:
- Exception
 
run
public void run()
         throws Exception
- 
- Specified by:
- runin class- Operation
 
- 
- Throws:
- Exception
 
returnsResponse
public boolean returnsResponse()
- 
- Specified by:
- returnsResponsein interface- RemotePropagatable<Operation>
- Overrides:
- returnsResponsein class- AbstractOperation
 
- 
 
getResponse
public Object getResponse()
- 
- Overrides:
- getResponsein class- AbstractOperation
 
- 
 
getFactoryId
public int getFactoryId()
- Description copied from interface: IdentifiedDataSerializable
- Returns DataSerializableFactory factory id for this class.
 
- 
- Specified by:
- getFactoryIdin interface- IdentifiedDataSerializable
 
- 
- Returns:
- factory id
 
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.