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 Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Invoked after the connection is closed.
    default void
    Invoked before the connection is closed.
    default void
    Invoked after the execution is complete.

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Method Details

    • executionComplete

      default 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.
    • beforeClosed

      default void beforeClosed()
      Invoked before the connection is closed.
    • afterClosed

      default void afterClosed()
      Invoked after the connection is closed.