Class CsnFactory
java.lang.Object
org.apache.directory.api.ldap.model.csn.CsnFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a newCsn.newInstance(long timestamp, int changeCount) Returns a newCsncreated from the given values.newPurgeCsn(long expirationDate) Generates a CSN used to purge data.voidsetReplicaId(int replicaId) Sets the replica ID
-
Constructor Details
-
CsnFactory
public CsnFactory(int replicaId) Creates a new CsnFactory instance- Parameters:
replicaId- The replica ID
-
-
Method Details
-
newInstance
-
newInstance
-
newPurgeCsn
Generates a CSN used to purge data. Its replicaID is not associated to a server.- Parameters:
expirationDate- The time up to the first CSN we want to keep- Returns:
- The new generated CSN
-
setReplicaId
public void setReplicaId(int replicaId) Sets the replica ID- Parameters:
replicaId- The replica ID
-