Interface TransportListener

All Known Implementing Classes:
AmqpProvider

public interface TransportListener
Listener interface that should be implemented by users of the various QpidJMS Transport classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onData(io.netty.buffer.ByteBuf incoming)
    Called when new incoming data has become available.
    void
    Called if the connection state becomes closed.
    void
    Called when an error occurs during normal Transport operations.
  • Method Details

    • onData

      void onData(io.netty.buffer.ByteBuf incoming)
      Called when new incoming data has become available.
      Parameters:
      incoming - the next incoming packet of data.
    • onTransportClosed

      void onTransportClosed()
      Called if the connection state becomes closed.
    • onTransportError

      void onTransportError(Throwable cause)
      Called when an error occurs during normal Transport operations.
      Parameters:
      cause - the error that triggered this event.