Package io.micronaut.data.connection
Interface ConnectionSynchronization
- All Superinterfaces:
- io.micronaut.core.order.Ordered
public interface ConnectionSynchronization
extends io.micronaut.core.order.Ordered
Interface for the connection synchronization callbacks.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
- 
Field SummaryFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidInvoked after the connection is closed.default voidInvoked before the connection is closed.default voidInvoked after the execution is complete.Methods inherited from interface io.micronaut.core.order.OrderedgetOrder
- 
Method Details- 
executionCompletedefault void executionComplete()Invoked after the execution is complete. This callback is always invoked after the connection execution is complete. In a case if the execution is reusing the connection, the closed callbacks wouldn't be called.
- 
beforeCloseddefault void beforeClosed()Invoked before the connection is closed.
- 
afterCloseddefault void afterClosed()Invoked after the connection is closed.
 
-