com.sleepycat.je
Class Durability

java.lang.Object
  extended by com.sleepycat.je.Durability

public class Durability
extends java.lang.Object


Nested Class Summary
static class Durability.ReplicaAckPolicy
          A replicated environment makes it possible to increase an application's transaction commit guarantees by committing changes to its replicas on the network.
static class Durability.SyncPolicy
          Defines the synchronization policy to be used when committing a transaction.
 
Constructor Summary
Durability(Durability.SyncPolicy localSync, Durability.SyncPolicy replicaSync, Durability.ReplicaAckPolicy replicaAck)
          Creates an instance of a Durability specification.
 
Method Summary
 Durability.SyncPolicy getLocalSync()
          Returns the transaction synchronization policy to be used locally when committing a transaction.
 Durability.ReplicaAckPolicy getReplicaAck()
          Returns the replica acknowledgment policy used by the master when committing changes to a replicated environment.
 Durability.SyncPolicy getReplicaSync()
          Returns the transaction synchronization policy to be used by the replica as it replays a transaction that needs an acknowledgment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Durability

public Durability(Durability.SyncPolicy localSync,
                  Durability.SyncPolicy replicaSync,
                  Durability.ReplicaAckPolicy replicaAck)
Creates an instance of a Durability specification.

Parameters:
localSync - the SyncPolicy to be used when committing the transaction locally.
replicaSync - the SyncPolicy to be used remotely, as part of a transaction acknowledgment, at a Replica node.
replicaAck - the acknowledgment policy used when obtaining transaction acknowledgments from Replicas.
Method Detail

getLocalSync

public Durability.SyncPolicy getLocalSync()
Returns the transaction synchronization policy to be used locally when committing a transaction.


getReplicaSync

public Durability.SyncPolicy getReplicaSync()
Returns the transaction synchronization policy to be used by the replica as it replays a transaction that needs an acknowledgment.


getReplicaAck

public Durability.ReplicaAckPolicy getReplicaAck()
Returns the replica acknowledgment policy used by the master when committing changes to a replicated environment.