Package org.apache.activemq.transport
Class DefaultTransportListener
java.lang.Object
org.apache.activemq.transport.DefaultTransportListener
- All Implemented Interfaces:
TransportListener
- Direct Known Subclasses:
MockTransport
An asynchronous listener of commands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
called to process a commandvoid
onException
(IOException error) An unrecoverable exception has occured on the transportvoid
The transport has suffered an interuption from which it hopes to recovervoid
The transport has resumed after an interuption
-
Constructor Details
-
DefaultTransportListener
public DefaultTransportListener()
-
-
Method Details
-
onCommand
called to process a command- Specified by:
onCommand
in interfaceTransportListener
- Parameters:
command
-
-
onException
An unrecoverable exception has occured on the transport- Specified by:
onException
in interfaceTransportListener
- Parameters:
error
-
-
transportInterupted
public void transportInterupted()The transport has suffered an interuption from which it hopes to recover- Specified by:
transportInterupted
in interfaceTransportListener
-
transportResumed
public void transportResumed()The transport has resumed after an interuption- Specified by:
transportResumed
in interfaceTransportListener
-