com.hazelcast.spi
Interface BackupAwareOperation

All Superinterfaces:
PartitionAwareOperation
All Known Implementing Classes:
AbstractAlterOperation, AbstractAlterOperation, AbstractMutatingCacheOperation, AcquireOperation, AddAllOperation, AddAndGetOperation, AlterAndGetOperation, AlterAndGetOperation, AlterOperation, AlterOperation, AtomicLongBackupAwareOperation, AtomicReferenceBackupAwareOperation, AwaitOperation, BasePutOperation, BaseRemoveOperation, BeforeAwaitOperation, CacheClearOperation, CacheEntryProcessorOperation, CacheGetAndRemoveOperation, CacheGetAndReplaceOperation, CacheLoadAllOperation, CachePutIfAbsentOperation, CachePutOperation, CacheRemoveAllOperation, CacheRemoveOperation, CacheReplaceOperation, ClearOperation, ClearOperation, ClearOperation, CollectionAddAllOperation, CollectionAddOperation, CollectionBackupAwareOperation, CollectionClearOperation, CollectionCompareAndRemoveOperation, CollectionPrepareOperation, CollectionRemoveOperation, CollectionRollbackOperation, CollectionTxnAddOperation, CollectionTxnRemoveOperation, CompareAndRemoveOperation, CompareAndSetOperation, CompareAndSetOperation, CountDownOperation, DeleteOperation, DrainOperation, DrainOperation, EntryOperation, EvictAllOperation, EvictOperation, GetAndAddOperation, GetAndAlterOperation, GetAndAlterOperation, GetAndSetOperation, GetAndSetOperation, InitOperation, ListAddAllOperation, ListAddOperation, ListRemoveOperation, ListSetOperation, LocalLockCleanupOperation, LockOperation, MergeOperation, MultiMapBackupAwareOperation, MultipleEntryOperation, OfferOperation, PartitionWideEntryOperation, PartitionWideEntryWithPredicateOperation, PollOperation, PutAllOperation, PutFromLoadAllOperation, PutIfAbsentOperation, PutOperation, PutOperation, PutTransientOperation, QueueBackupAwareOperation, ReduceOperation, ReleaseOperation, RemoveAllOperation, RemoveIfSameOperation, RemoveOperation, RemoveOperation, RemoveOperation, ReplaceIfSameOperation, ReplaceOperation, SemaphoreBackupAwareOperation, SemaphoreDeadMemberOperation, SetAndGetOperation, SetCountOperation, SetOperation, SetOperation, SetOperation, SignalOperation, TryPutOperation, TryRemoveOperation, TxnCommitOperation, TxnDeleteOperation, TxnOfferOperation, TxnPollOperation, TxnPrepareOperation, TxnPrepareOperation, TxnPrepareOperation, TxnPutOperation, TxnRemoveAllOperation, TxnRemoveOperation, TxnReserveOfferOperation, TxnReservePollOperation, TxnRollbackOperation, TxnRollbackOperation, TxnRollbackOperation, TxnSetOperation, TxnUnlockOperation, UnlockIfLeaseExpiredOperation, UnlockOperation, WanOriginatedDeleteOperation

public interface BackupAwareOperation
extends PartitionAwareOperation

A BackupAwareOperation is an Operation to indicate then when a change is made, a BackupOperation is created to replicate the backup.

Author:
mdogan 12/6/12

Method Summary
 int getAsyncBackupCount()
          The asynchronous backup count.
 Operation getBackupOperation()
          Creates the BackupOperation responsible for making the backup.
 int getSyncBackupCount()
          The synchronous backup count.
 boolean shouldBackup()
          Checks if a backup needs to be made.
 
Methods inherited from interface com.hazelcast.spi.PartitionAwareOperation
getPartitionId
 

Method Detail

shouldBackup

boolean shouldBackup()
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.

Returns:
true if a backup needs to be made, false otherwise.

getSyncBackupCount

int getSyncBackupCount()
The synchronous backup count. If no backups need to be made, 0 is returned.

Returns:
the synchronous backup count.

getAsyncBackupCount

int getAsyncBackupCount()
The asynchronous backup count. If no asynchronous backups need to be made, 0 is returned.

Returns:
the asynchronous backup count.

getBackupOperation

Operation getBackupOperation()
Creates the BackupOperation responsible for making the backup.

Returns:
the created BackupOperation.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.