Interface AsyncPingHandler

  • All Known Implementing Classes:
    BasicPingHandler

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void cancel()
      Triggered to cancel the message exchange.
      void consumeResponse​(java.nio.ByteBuffer feedback)
      Triggered to signal receipt of a ping response message.
      void failed​(java.lang.Exception cause)
      Triggered to signal a failure in data processing.
      java.nio.ByteBuffer getData()
      Returns content of ping message.
    • Method Detail

      • getData

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

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

        void failed​(java.lang.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.