| java.lang.Object com.flexive.shared.CustomSequencer
CustomSequencer | public class CustomSequencer implements Serializable(Code) | | A user defined sequencer
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
CustomSequencer | public CustomSequencer(String name, boolean allowRollover, long currentNumber)(Code) | | Constructor
Parameters: name - unique name Parameters: allowRollover - rollover when Long.MAX_VALUE is reached? Parameters: currentNumber - the current number of the sequence (last delivered) |
getCurrentNumber | public long getCurrentNumber()(Code) | | Get the current number of this sequencer, however no guarantee can be made that the next number requested
will be this current number + 1
current number of this sequencer |
getName | public String getName()(Code) | | Get the unique name of this sequencer
unique name of this sequencer |
isAllowRollover | public boolean isAllowRollover()(Code) | | Does this sequencer support rollover?
If the current number gets close to Long.MAX_VALUE it will be reset to zero if rollover is allowed, else
an exception will be thrown
rollover allowed |
|
|