@FunctionalInterface public interface ReactiveIdentifierGenerator<Id>
IdentifierGenerator
,
which supports a non-blocking method for obtaining the generated
identifier.
A custom generation strategy may be defined by implementing this
interface, and, optionally, Configurable
,
and declaring the custom implementation class using
GenericGenerator
.
TableReactiveIdentifierGenerator
,
SequenceReactiveIdentifierGenerator
Modifier and Type | Method and Description |
---|---|
CompletionStage<Id> |
generate(ReactiveConnectionSupplier session,
Object entity)
Returns a generated identifier, via a
CompletionStage . |
CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object entity)
CompletionStage
.session
- the reactive sessionCopyright © 2020-2022 Red Hat, Inc. All Rights Reserved.