public class CsnFactory extends Object
Csn
.Constructor and Description |
---|
CsnFactory(int replicaId) |
Modifier and Type | Method and Description |
---|---|
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.
|
public CsnFactory(int replicaId)
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 usechangeCount
- The change count to usepublic Csn newPurgeCsn(long expirationDate)
expirationDate
- The time up to the first CSN we want to keepCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.