Package org.apache.qpid.jms.transports
Interface TransportListener
-
- All Known Implementing Classes:
AmqpProvider
public interface TransportListenerListener interface that should be implemented by users of the various QpidJMS Transport classes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonData(io.netty.buffer.ByteBuf incoming)Called when new incoming data has become available.voidonTransportClosed()Called if the connection state becomes closed.voidonTransportError(Throwable cause)Called when an error occurs during normal Transport operations.
-
-
-
Method Detail
-
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.
-
-