public class SnapshotChangeNumberPersister extends Object implements com.unboundid.directory.sdk.common.api.ServerThread
Constructor and Description |
---|
SnapshotChangeNumberPersister(SnapshotChangelog snapshotChangelog)
This constructor either loads the current changelog number value or create a new state entry
|
Modifier and Type | Method and Description |
---|---|
Long |
getCurrentChangeNumber()
Performs the necessary processing to return the current change number
|
Long |
getNextChangeNumber()
Performs the necessary processing to return sequential change numbers
|
void |
runThread()
Performs the necessary processing to persist state on a regular basis
|
void |
shutdown()
Performs the necessary processing to shut down shop gracefully
|
public SnapshotChangeNumberPersister(SnapshotChangelog snapshotChangelog) throws com.unboundid.ldap.sdk.LDAPException
snapshotChangelog
- the snapshotchangelog objectcom.unboundid.ldap.sdk.LDAPException
- if an error is encounteredpublic Long getCurrentChangeNumber()
public Long getNextChangeNumber()
public void shutdown()
public void runThread()
runThread
in interface com.unboundid.directory.sdk.common.api.ServerThread
Copyright © 2019 Ping Identity Corp.. All rights reserved.