Package org.apache.activemq.transport
Class DefaultTransportListener
- java.lang.Object
-
- org.apache.activemq.transport.DefaultTransportListener
-
- All Implemented Interfaces:
TransportListener
- Direct Known Subclasses:
MockTransport
public class DefaultTransportListener extends Object implements TransportListener
An asynchronous listener of commands
-
-
Constructor Summary
Constructors Constructor Description DefaultTransportListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCommand(Object command)called to process a commandvoidonException(IOException error)An unrecoverable exception has occured on the transportvoidtransportInterupted()The transport has suffered an interuption from which it hopes to recovervoidtransportResumed()The transport has resumed after an interuption
-
-
-
Constructor Detail
-
DefaultTransportListener
public DefaultTransportListener()
-
-
Method Detail
-
onCommand
public void onCommand(Object command)
called to process a command- Specified by:
onCommandin interfaceTransportListener- Parameters:
command-
-
onException
public void onException(IOException error)
An unrecoverable exception has occured on the transport- Specified by:
onExceptionin interfaceTransportListener- Parameters:
error-
-
transportInterupted
public void transportInterupted()
The transport has suffered an interuption from which it hopes to recover- Specified by:
transportInteruptedin interfaceTransportListener
-
transportResumed
public void transportResumed()
The transport has resumed after an interuption- Specified by:
transportResumedin interfaceTransportListener
-
-