Package com.sleepycat.db
Class ReplicationTimeoutType
java.lang.Object
com.sleepycat.db.ReplicationTimeoutType
The ReplicationTimeoutType defines the types of timeouts that can beconfigured for the Berkeley Db replication functionality.
The class is used in the Environment.setReplicationTimeout method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReplicationTimeoutTypeConfigure the amount of time the replication manager's transport function waits to collect enough acknowledgments from replication group clients, before giving up and returning a failure indication.static final ReplicationTimeoutTypeConfigure the amount of time the replication manager will delay between completing a checkpoint and writing a checkpoint record into the log.static final ReplicationTimeoutTypeConfigure the amount of time the replication manager will wait before trying to re-establish a connection to another site after a communication failure.static final ReplicationTimeoutTypeConfigure the amount of time the replication manager will wait before retrying a failed election.static final ReplicationTimeoutTypeThe timeout period for an election.static final ReplicationTimeoutTypeAn optional configuration timeout period to wait for full election participation the first time the replication group finds a master.static final ReplicationTimeoutTypeThe amount of time the replication manager, running at a client site, waits for some message activity on the connection from the master (heartbeats or other messages) before concluding that the connection has been lost.static final ReplicationTimeoutTypeThe frequency at which the replication manager, running at a master site, broadcasts a heartbeat message in an otherwise idle system.static final ReplicationTimeoutTypeConfigure the amount of time a client grants its master lease to a master. -
Method Summary
-
Field Details
-
ACK_TIMEOUT
Configure the amount of time the replication manager's transport function waits to collect enough acknowledgments from replication group clients, before giving up and returning a failure indication. -
CHECKPOINT_DELAY
Configure the amount of time the replication manager will delay between completing a checkpoint and writing a checkpoint record into the log. This delay allows clients to complete their own checkpoints before the master requires completion of them. The default is 30 seconds. -
CONNECTION_RETRY
Configure the amount of time the replication manager will wait before trying to re-establish a connection to another site after a communication failure. -
ELECTION_TIMEOUT
The timeout period for an election. -
ELECTION_RETRY
Configure the amount of time the replication manager will wait before retrying a failed election. -
HEARTBEAT_MONITOR
The amount of time the replication manager, running at a client site, waits for some message activity on the connection from the master (heartbeats or other messages) before concluding that the connection has been lost. When 0 (the default), no monitoring is performed. -
HEARTBEAT_SEND
The frequency at which the replication manager, running at a master site, broadcasts a heartbeat message in an otherwise idle system. When 0 (the default), no heartbeat messages will be sent. -
FULL_ELECTION_TIMEOUT
An optional configuration timeout period to wait for full election participation the first time the replication group finds a master. By default this option is turned off and normal election timeouts are used. (See the Elections section in the Berkeley DB Reference Guide for more information.) -
LEASE_TIMEOUT
Configure the amount of time a client grants its master lease to a master. When using master leases all sites in a replication group must use the same lease timeout value. There is no default value. If leases are desired, this timeout must be configured prior to callingEnvironment.startReplication.
-
-
Method Details