public abstract class AbstractUIDGenerator extends AbstractGenerator
allocationSize, block, initialValue, LOCALISER, 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 |
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 reserveBlock(long size)
reserveBlock
in class AbstractGenerator
size
- The block sizeprotected abstract String getIdentifier()
Copyright © 2019. All rights reserved.