Interface AsyncPingHandler

All Known Implementing Classes:
BasicPingHandler

public interface AsyncPingHandler
Abstract asynchronous ping exchange handler.
Since:
5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Triggered to cancel the message exchange.
    void
    Triggered to signal receipt of a ping response message.
    void
    Triggered to signal a failure in data processing.
    Returns content of ping message.
  • Method Details

    • getData

      ByteBuffer getData()
      Returns content of ping message.
      Returns:
      the ping message content.
    • consumeResponse

      void consumeResponse(ByteBuffer feedback) throws HttpException, IOException
      Triggered to signal receipt of a ping response message.
      Parameters:
      feedback - the ping message feedback.
      Throws:
      HttpException
      IOException
    • failed

      void failed(Exception cause)
      Triggered to signal a failure in data processing.
      Parameters:
      cause - the cause of the failure.
    • cancel

      void cancel()
      Triggered to cancel the message exchange.