org.apache.activemq.apollo.transport
Interface TransportListener

All Known Implementing Classes:
DefaultTransportListener, TransportFilter

public interface TransportListener

An asynchronous listener of commands


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
 

Method Detail

onTransportCommand

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

Parameters:
command -

onRefill

void onRefill()
transport can now accept more commands for transmission.


onTransportFailure

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

Parameters:
error -

onTransportConnected

void onTransportConnected()
The transport has been connected.


onTransportDisconnected

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



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