org.apache.activemq.apollo.transport
Class DefaultTransportListener

java.lang.Object
  extended by org.apache.activemq.apollo.transport.DefaultTransportListener
All Implemented Interfaces:
TransportListener

public class DefaultTransportListener
extends java.lang.Object
implements TransportListener

An asynchronous listener of commands


Constructor Summary
DefaultTransportListener()
           
 
Method Summary
 void onRefill()
          transport can now accept more commands for transmission.
 void onTransportCommand(java.lang.Object command)
          called to process a command
 void onTransportConnected()
          The transport has been connected.
 void onTransportDisconnected()
          The transport has suffered a disconnection from which it hopes to recover
 void onTransportFailure(java.io.IOException error)
          An unrecoverable exception has occured on the transport
 
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

onTransportCommand

public void onTransportCommand(java.lang.Object command)
called to process a command

Specified by:
onTransportCommand in interface TransportListener
Parameters:
command -

onRefill

public void onRefill()
Description copied from interface: TransportListener
transport can now accept more commands for transmission.

Specified by:
onRefill in interface TransportListener

onTransportFailure

public void onTransportFailure(java.io.IOException error)
An unrecoverable exception has occured on the transport

Specified by:
onTransportFailure in interface TransportListener
Parameters:
error -

onTransportConnected

public void onTransportConnected()
The transport has been connected.

Specified by:
onTransportConnected in interface TransportListener

onTransportDisconnected

public void onTransportDisconnected()
The transport has suffered a disconnection from which it hopes to recover

Specified by:
onTransportDisconnected in interface TransportListener


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.