org.apache.activemq.transport
Class DefaultTransportListener

java.lang.Object
  extended by 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
DefaultTransportListener()
           
 
Method Summary
 void onCommand(Object command)
          called to process a command
 void onException(IOException error)
          An unrecoverable exception has occured on the transport
 void transportInterupted()
          The transport has suffered an interuption from which it hopes to recover
 void transportResumed()
          The transport has resumed after an interuption
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTransportListener

public DefaultTransportListener()
Method Detail

onCommand

public void onCommand(Object command)
called to process a command

Specified by:
onCommand in interface TransportListener
Parameters:
command -

onException

public void onException(IOException error)
An unrecoverable exception has occured on the transport

Specified by:
onException in interface TransportListener
Parameters:
error -

transportInterupted

public void transportInterupted()
The transport has suffered an interuption from which it hopes to recover

Specified by:
transportInterupted in interface TransportListener

transportResumed

public void transportResumed()
The transport has resumed after an interuption

Specified by:
transportResumed in interface TransportListener


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.