public interface ChangelogDB
Modifier and Type | Method and Description |
---|---|
ChangeNumberIndexDB |
getChangeNumberIndexDB()
Returns the
ChangeNumberIndexDB object. |
ReplicationDomainDB |
getReplicationDomainDB()
Returns the
ReplicationDomainDB object. |
void |
initializeDB()
Initializes the replication database by reading its previous state and
building the relevant ReplicaDBs according to the previous state.
|
void |
removeDB()
Removes the changelog database directory.
|
void |
setComputeChangeNumber(boolean computeChangeNumber)
Sets whether the replication database must compute change numbers for
replicated changes.
|
void |
setPurgeDelay(long delayInMillis)
Sets the purge delay for the replication database.
|
void |
shutdownDB()
Shutdown the replication database.
|
void initializeDB()
void setPurgeDelay(long delayInMillis)
Purging happens on a best effort basis, i.e. the purge delay is used by the replication database to know which data can be purged, but there are no guarantees on when the purging will actually happen.
delayInMillis
- the purge delay in millisecondsvoid setComputeChangeNumber(boolean computeChangeNumber) throws ChangelogException
computeChangeNumber
- whether to compute change numbers for replicated changesChangelogException
- If a database problem happenedvoid shutdownDB() throws ChangelogException
ChangelogException
- If a database problem happenedvoid removeDB() throws ChangelogException
ChangelogException
- If a database problem happenedChangeNumberIndexDB getChangeNumberIndexDB()
ChangeNumberIndexDB
object.ChangeNumberIndexDB
objectReplicationDomainDB getReplicationDomainDB()
ReplicationDomainDB
object.ReplicationDomainDB
objectCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.