public interface NumberGeneratorIFOperations
| Modifier and Type | Method and Description |
|---|---|
int |
generate(java.lang.String namespace)
Generate a long value belongs to the given namespace.
|
void |
reset(java.lang.String namespace)
Reset the generation counter and will set the current count to zero.
|
void |
resetToValue(java.lang.String namespace,
int value)
Reset the generation counter and set the current value to the given value.
|
int generate(java.lang.String namespace)
throws NumberGeneratorException
namespaced - the name space that should be used for number generation.NumberGeneratorException - with the following possible error codes:
NUMBERGENERATOR_BAD_PARAMETER
NUMBERGENERATOR_IMPLEMENTATION_PROBLEM
NUMBERGENERATOR_NOT_IMPLEMENTED
NUMBERGENERATOR_NO_MEMORYvoid reset(java.lang.String namespace)
throws NumberGeneratorException
namespaced - the name space that should be reset.NumberGeneratorException - with the following possible error codes:
NUMBERGENERATOR_BAD_PARAMETER
NUMBERGENERATOR_IMPLEMENTATION_PROBLEM
NUMBERGENERATOR_NOT_IMPLEMENTED
NUMBERGENERATOR_NO_MEMORYvoid resetToValue(java.lang.String namespace,
int value)
throws NumberGeneratorException
namespaced - the name space that should be reset.value - the new counter setting.NumberGeneratorException - with the following possible error codes:
NUMBERGENERATOR_BAD_PARAMETER
NUMBERGENERATOR_IMPLEMENTATION_PROBLEM
NUMBERGENERATOR_NOT_IMPLEMENTED
NUMBERGENERATOR_NO_MEMORY