Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.activeio
Interface AsynchChannelListener

All Known Implementing Classes:
  AsynchChannelToServerRequestChannel, AsynchToSynchChannelAdapter, FilterAsynchChannel

public interface AsynchChannelListener

A ChannelConsumer object is used to receive 'up' `org.activeio.channel.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 `AsynchChannel` will call this method to deliver an 'up' packet to a consumer.
`void` | `onPacketError(java.io.IOException error)` A `AsynchChannel` will call this method when a async failure occurs in the channel.

Method Detail

### onPacket

    public void onPacket(Packet packet)

  A `AsynchChannel` will call this method to deliver an 'up' packet to a consumer.

  Parameters:
    `packet` -

### onPacketError

    public void onPacketError(java.io.IOException error)

  A `AsynchChannel` will call this method when a async failure occurs in the channel.

  Parameters:
    `error` - the exception that describes the failure.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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