Interface ConnectionStatus<C>

Type Parameters:
C - The connection type
All Known Implementing Classes:
DefaultConnectionStatus

public interface ConnectionStatus<C>
The connection status.
Since:
4.0.0
Author:
Denis Stepanov
  • 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

      @NonNull C getConnection()
      The connection representation.
      Returns:
      The connection representation
    • getDefinition

      @NonNull @NonNull ConnectionDefinition getDefinition()
      The connection definition.
      Returns:
      The connection definition
    • registerSynchronization

      void registerSynchronization(@NonNull @NonNull ConnectionSynchronization synchronization)
      Register connection synchronization.
      Parameters:
      synchronization - The synchronization