public abstract class AbstractUIDGenerator extends AbstractGenerator<String>
allocationSize, block, initialValue, name, properties, repositoryExists
Constructor and Description |
---|
AbstractUIDGenerator(String name,
Properties props)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getIdentifier()
Create an identifier in the UID format required.
|
static Class |
getStorageClass()
Accessor for the storage class for values generated with this generator.
|
protected ValueGenerationBlock<String> |
reserveBlock(long size)
Method to reserve "size" values to the block.
|
allocate, createRepository, current, currentValue, getName, next, nextValue, obtainGenerationBlock, obtainGenerationBlock, repositoryExists, requiresRepository, reserveBlock
public AbstractUIDGenerator(String name, Properties props)
name
- Symbolic name for this generatorprops
- Properties controlling its behaviourpublic static Class getStorageClass()
protected ValueGenerationBlock<String> reserveBlock(long size)
reserveBlock
in class AbstractGenerator<String>
size
- The block sizeprotected abstract String getIdentifier()
Copyright © 2015. All rights reserved.