Class BlockingIdentifierGenerator

java.lang.Object
org.hibernate.reactive.id.impl.BlockingIdentifierGenerator
All Implemented Interfaces:
Serializable, org.hibernate.generator.Generator, ReactiveIdentifierGenerator<Long>
Direct Known Subclasses:
ReactiveSequenceIdentifierGenerator, TableReactiveIdentifierGenerator

public abstract class BlockingIdentifierGenerator extends Object implements ReactiveIdentifierGenerator<Long>
A ReactiveIdentifierGenerator which uses the database to allocate blocks of ids. A block is identified by its "hi" value (the first id in the block). While a new block is being allocated, concurrent streams will defer the operation without blocking.
See Also: