com.hazelcast.spi
Interface BackupAwareOperation

All Superinterfaces:
PartitionAwareOperation

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.

Returns:
the synchronous backup count.

getAsyncBackupCount

int getAsyncBackupCount()
The asynchronous backup count.

Returns:
the asynchronous backup count.

getBackupOperation

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

Returns:
the created BackupOperation.


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