Interface TransportListener
public interface TransportListener
Listener interface that should be implemented by users of the various
QpidJMS Transport classes.
-
Method Summary
Modifier and TypeMethodDescriptionvoidtransportConnected(Transport transport) Called after the transport has successfully connected to the remote and performed any required handshakes such as SSL or Web Sockets handshaking and the connection is now considered open.voidtransportError(Throwable cause) Called when an error occurs during normal Transport operations such as SSL handshake or remote connection dropped.voidtransportInitialized(Transport transport) Called immediately before the transport attempts to connect to the remote peer but following allTransportinitialization.voidtransportRead(ProtonBuffer incoming) Called when new incoming data has become available for processing by theTransportuser.
-
Method Details
-
transportInitialized
Called immediately before the transport attempts to connect to the remote peer but following allTransportinitialization. The Transport configuration is now static and the event handler can update any internal state or configure additional resources based on the configured and preparedTransport.- Parameters:
transport- The transport that is now fully connected and ready to perform IO operations.
-
transportConnected
Called after the transport has successfully connected to the remote and performed any required handshakes such as SSL or Web Sockets handshaking and the connection is now considered open.- Parameters:
transport- The transport that is now fully connected and ready to perform IO operations.
-
transportRead
Called when new incoming data has become available for processing by theTransportuser.- Parameters:
incoming- the next incoming packet of data.
-
transportError
Called when an error occurs during normal Transport operations such as SSL handshake or remote connection dropped. Once this error callback is triggered theTransportis considered to be failed and should be closed.- Parameters:
cause- the error that triggered this event.
-