Interface HttpConnectionLiveness

All Known Implementing Classes:
Http2ConnectionLiveness

public interface HttpConnectionLiveness
Interface for checking the liveness of an HTTP connection. This interface provides methods to cancel started probes or any active work, process messages received from the remote peer, and start probing the connection for the liveness.
Since:
1.2.12
Author:
raccoonback, Violeta Georgieva
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    HttpConnectionLiveness that immediately closes the HTTP connection on read idle, without starting any probing.
    static final Logger
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancels started probes or any active work.
    void
    Closes or starts probing the connection for the liveness.
    void
    Processes messages received from the remote peer.
  • Field Details

  • Method Details

    • cancel

      void cancel()
      Cancels started probes or any active work.
    • check

      void check(ChannelHandlerContext ctx)
      Closes or starts probing the connection for the liveness.
      Parameters:
      ctx - the ChannelHandlerContext of the connection
    • receive

      void receive(Object msg)
      Processes messages received from the remote peer.
      Parameters:
      msg - the message received from the remote peer