Package org.hibernate.reactive.id
Interface ReactiveIdentifierGenerator<Id>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ReactiveIdentifierGenerator<Id>
A replacement forIdentifierGenerator
, 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 usingGenericGenerator
.- See Also:
TableReactiveIdentifierGenerator
,SequenceReactiveIdentifierGenerator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletionStage<Id>
generate(ReactiveConnectionSupplier session, Object entity)
Returns a generated identifier, via aCompletionStage
.
-
-
-
Method Detail
-
generate
CompletionStage<Id> generate(ReactiveConnectionSupplier session, Object entity)
Returns a generated identifier, via aCompletionStage
.- Parameters:
session
- the reactive session
-
-