Package io.micronaut.data.connection
Interface ConnectionStatus<C>
- Type Parameters:
C
- The connection type
- All Known Subinterfaces:
ReactiveConnectionStatus<C>
- All Known Implementing Classes:
DefaultConnectionStatus
,DefaultReactiveConnectionStatus
public interface ConnectionStatus<C>
The connection status.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionThe connection representation.@NonNull ConnectionDefinition
The connection definition.boolean
isNew()
A new connection value.void
registerSynchronization
(@NonNull ConnectionSynchronization synchronization) Register connection synchronization.
-
Method Details
-
isNew
boolean isNew()A new connection value. Based on the propagation value the connection manager might decide to reuse the existing connection.- Returns:
- true if the connection is new
-
getConnection
The connection representation.- Returns:
- The connection representation
-
getDefinition
The connection definition.- Returns:
- The connection definition
-
registerSynchronization
Register connection synchronization.- Parameters:
synchronization
- The synchronization
-