|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.csn.CsnFactory
public class CsnFactory
Generates a new Csn
.
Constructor Summary | |
---|---|
CsnFactory(int replicaId)
|
Method Summary | |
---|---|
Csn |
newInstance()
Returns a new Csn . |
Csn |
newInstance(long timestamp,
int changeCount)
Returns a new Csn created from the given values. |
Csn |
newPurgeCsn(long expirationDate)
Generates a CSN used to purge data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsnFactory(int replicaId)
Method Detail |
---|
public Csn newInstance()
Csn
.
Generated CSN can be duplicate if user generates CSNs more than 2G
times a milliseconds.
public Csn newInstance(long timestamp, int changeCount)
Csn
created from the given values.
This method is not to be used except for test purposes.
timestamp
- The timestamp to usereplicaId
- Replica ID. ReplicaID must be 1-3 digit valuechangeCount
- The change count to usepublic Csn newPurgeCsn(long expirationDate)
expirationDate
- The time up to the first CSN we want to keep
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |