Package org.apache.qpid.jms.transports
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 TypeMethodDescriptionvoidonData(io.netty.buffer.ByteBuf incoming) Called when new incoming data has become available.voidCalled if the connection state becomes closed.voidonTransportError(Throwable cause) 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
Called when an error occurs during normal Transport operations.- Parameters:
cause- the error that triggered this event.
-