Interface Extension<T>

Type Parameters:
T - the interaction context type
All Known Subinterfaces:
ServerExtension
All Known Implementing Classes:
TasksExtension

public interface Extension<T>
Extension point that can hook into the connection lifecycle and register custom handlers.
  • Method Summary

    Modifier and Type
    Method
    Description
    Unique identifier for this extension.
    default void
    Called when the connection is being closed.
    default void
    Called after connection initialization is complete.
    default void
    Called during server shutdown to release resources.
  • Method Details

    • extensionId

      String extensionId()
      Unique identifier for this extension.
    • onConnectionInit

      default void onConnectionInit(T context)
      Called after connection initialization is complete.
    • onConnectionClose

      default void onConnectionClose(T context)
      Called when the connection is being closed.
    • shutdown

      default void shutdown()
      Called during server shutdown to release resources.