Interface Context

All Superinterfaces:
InboundPropagator, OutboundPropagator, UserEventPropagator

public interface Context extends InboundPropagator, OutboundPropagator, UserEventPropagator
The context object that wraps a Handler and links it into the Pipeline. It provides methods to interact with and propagate events through the pipeline.
  • Method Details

    • getName

      String getName()
      Returns the name of this context in the pipeline.
      Returns:
      the handler name
    • getHandler

      Handler getHandler()
      Returns the handler instance bound to this context.
      Returns:
      the handler
    • getPipeline

      Pipeline getPipeline()
      Returns the pipeline instance bound to this context.
      Returns:
      the pipeline
    • getConnection

      Connection getConnection()
      Returns the connection instance bound to this context.
      Returns:
      the connection
    • isRemoved

      boolean isRemoved()
      Indicates whether the handler has been removed from the pipeline.
      Returns:
      true if the handler is removed, false otherwise.