org.fusesource.fabric.dosgi.io
Interface TransportListener

All Known Implementing Classes:
TransportPool.Listener

public interface TransportListener

An asynchronous listener of commands


Method Summary
 void onRefill(Transport transport)
          transport can now accept more commands for transmission.
 void onTransportCommand(Transport transport, java.lang.Object command)
          called to process a command
 void onTransportConnected(Transport transport)
          The transport has been connected.
 void onTransportDisconnected(Transport transport)
          The transport has suffered a disconnection from which it hopes to recover
 void onTransportFailure(Transport transport, java.io.IOException error)
          An unrecoverable exception has occured on the transport
 

Method Detail

onTransportCommand

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

Parameters:
command -

onRefill

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


onTransportFailure

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

Parameters:
error -

onTransportConnected

void onTransportConnected(Transport transport)
The transport has been connected.


onTransportDisconnected

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



Copyright © 2013 Red Hat. All Rights Reserved.