@InMemory public class InMemorySequenceGenerator extends Object implements SequenceGenerator
Long
numbers by using an every-incrementing AtomicLong
.Constructor and Description |
---|
InMemorySequenceGenerator() |
Modifier and Type | Method and Description |
---|---|
<E extends Entity<Long>> |
generate(Class<E> entityClass)
Generate a new identifier for an entity of the specified class.
|
public <E extends Entity<Long>> Long generate(Class<E> entityClass)
IdentityGenerator
generate
in interface IdentityGenerator<Long>
E
- the entity type.entityClass
- the entity class to generate an identity for.Copyright © 2013-2018–2019 SeedStack. All rights reserved.