public class AUIDGenerator extends AbstractUIDGenerator
This generator can be used in concurrent applications. It is especially useful in situations where large numbers of transactions within a certain amount of time have to be made, and the additional overhead of synchronizing the concurrent creation of unique identifiers through the database would break performance limits.
There are no properties for this ValueGenerator.
Note: Due to limitations of the available Java API there is a chance of less than 1:2^62 that two concurrently running JVMs will produce the same identifiers, which is in practical terms never, because your database server will have crashed a million times before this happens.
allocationSize, block, initialValue, name, properties, repositoryExists
Constructor and Description |
---|
AUIDGenerator(String name,
Properties props) |
Modifier and Type | Method and Description |
---|---|
protected String |
getIdentifier()
Accessor for a new identifier.
|
getStorageClass, reserveBlock
allocate, createRepository, current, currentValue, getName, next, nextValue, obtainGenerationBlock, obtainGenerationBlock, repositoryExists, requiresRepository, reserveBlock
public AUIDGenerator(String name, Properties props)
protected String getIdentifier()
getIdentifier
in class AbstractUIDGenerator
Copyright © 2015. All rights reserved.