public class SequenceIdentifierGenerator extends AbstractConfigurationAware implements IdentifierGenerator
IdentifierGenerator using a global sequence backed by an
AtomicLong.configuration| Constructor and Description |
|---|
SequenceIdentifierGenerator() |
| Modifier and Type | Method and Description |
|---|---|
long |
generate(Class<? extends Identified> componentType)
If the
identified parameter is null, the
returned value must be unique per the
MustacheEngine instance. |
checkNotInitialized, init, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic long generate(Class<? extends Identified> componentType)
IdentifierGeneratoridentified parameter is null, the
returned value must be unique per the
MustacheEngine instance. Otherwise, the value
must be unique for the given component type and
MustacheEngine instance, i.e. it may also be
unique per the MustacheEngine instance.generate in interface IdentifierGeneratorcomponentType - The type of a component the identifier is generated for, may
be nullCopyright © 2017. All rights reserved.