# Uses of Class com.sleepycat.db.ReplicationConfig (Oracle - Berkeley DB Java API)
Date: 2017-04-13

## Uses of Class
com.sleepycat.db.ReplicationConfig

Packages that use ReplicationConfig
com.sleepycat.db: Berkeley DB Java API [reference guide] [Java programming notes].

### Uses of ReplicationConfig in com.sleepycat.db

Fields in com.sleepycat.db declared as ReplicationConfig
`static ReplicationConfig` ReplicationConfig.`AUTOINIT` The replication master should automatically re-initialize outdated clients (defaults to on.)
`static ReplicationConfig` ReplicationConfig.`BULK` The replication master should send groups of records to the clients in a single network transfer.
`static ReplicationConfig` ReplicationConfig.`DELAYCLIENT` The client should delay synchronizing to a newly declared master (defaults to off).
`static ReplicationConfig` ReplicationConfig.`ELECTIONS` Replication Manager automatically runs elections to choose a new master when the old master appears to have become disconnected.
`static ReplicationConfig` ReplicationConfig.`FORWARD_WRITES` Enable simple write forwarding for this site.
`static ReplicationConfig` ReplicationConfig.`LEASE` Master leases will be used for this site.
`static ReplicationConfig` ReplicationConfig.`NOWAIT` Berkeley DB method calls that would normally block while clients are in recovery should return errors immediately.
`static ReplicationConfig` ReplicationConfig.`PREFMAS_CLIENT` This flag is used to specify the client site in a replication group operating in preferred master mode.
`static ReplicationConfig` ReplicationConfig.`PREFMAS_MASTER` This flag is used to specify the preferred master site in a replication group operating in preferred master mode.
`static ReplicationConfig` ReplicationConfig.`STRICT_2SITE` Replication Manager observes the strict "majority" rule in managing elections, even in a group with only 2 sites.

Methods in com.sleepycat.db with parameters of type ReplicationConfig
`boolean` Environment.`getReplicationConfig(ReplicationConfig config)` Get the configuration of the replication subsystem.
`void` Environment.`setReplicationConfig(ReplicationConfig config, boolean onoff)` Configure the replication subsystem.