public class DuccIdFactory extends Object implements IDuccIdFactory
| Constructor and Description |
|---|
DuccIdFactory() |
DuccIdFactory(IPropertiesFileManager propertiesFileManager,
String propertiesFileKey) |
DuccIdFactory(long seed) |
| Modifier and Type | Method and Description |
|---|---|
DuccId |
next() |
DuccId |
next(long s)
During recovery, if you pass in a "friendly", you always want the passed-in friendly, but
you want to ensure that at the end of recovery, the seed is set to the largest of the
recovered IDs.
|
long |
setIfMax(long candidate)
set seqno to candidate if it is bigger than previous, return previous value
|
public DuccIdFactory()
public DuccIdFactory(IPropertiesFileManager propertiesFileManager, String propertiesFileKey)
public DuccIdFactory(long seed)
public DuccId next(long s)
public DuccId next()
next in interface IDuccIdFactorypublic long setIfMax(long candidate)
setIfMax in interface IDuccIdFactoryCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.