org.activeio
Interface AsyncChannelListener

All Known Implementing Classes:
AsyncChannelToServerRequestChannel, AsyncToSyncChannel, FilterAsyncChannel

public interface AsyncChannelListener

A ChannelConsumer object is used to receive 'up' Packet objects. TODO: describe the threading model so that the implementor of this interface can know if the methods in this interface can block for a long time or not. I'm thinking that it would be best if these methods are not allowed to block for a long time to encourage SEDA style processing.

Version:
$Revision$

Method Summary
 void onPacket(Packet packet)
          A AsyncChannel will call this method to deliver an 'up' packet to a consumer.
 void onPacketError(IOException error)
          A AsyncChannel will call this method when a async failure occurs in the channel.
 

Method Detail

onPacket

public void onPacket(Packet packet)
A AsyncChannel will call this method to deliver an 'up' packet to a consumer.

Parameters:
packet -

onPacketError

public void onPacketError(IOException error)
A AsyncChannel will call this method when a async failure occurs in the channel.

Parameters:
error - the exception that describes the failure.


Copyright © -2007 The ActiveIO Project. All Rights Reserved.