Interface PipelineContext

All Known Implementing Classes:
DefaultPipelineContext

public interface PipelineContext
Transport-agnostic adapter for adding/removing handlers in a connection pipeline.
Author:
渔民小镇
date:
2023-02-19
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addFirst(Object handler)
    Adds the handler to the first position.
    void
    addFirst(String name, Object handler)
    Adds the handler to the first position.
    default void
    addLast(Object handler)
    Adds the handler to the last position.
    void
    addLast(String name, Object handler)
    Adds the handler to the last position.
    void
    remove(String name)
    Removes the specified handler.
  • Method Details

    • addFirst

      default void addFirst(Object handler)
      Adds the handler to the first position.
      Parameters:
      handler - handler instance
    • addFirst

      void addFirst(String name, Object handler)
      Adds the handler to the first position.
      Parameters:
      name - handler name
      handler - handler instance
    • addLast

      default void addLast(Object handler)
      Adds the handler to the last position.
      Parameters:
      handler - handler instance
    • addLast

      void addLast(String name, Object handler)
      Adds the handler to the last position.
      Parameters:
      name - handler name
      handler - handler instance
    • remove

      void remove(String name)
      Removes the specified handler.
      Parameters:
      name - handler name