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 Channel

All Superinterfaces:
  Disposable, Service

All Known Subinterfaces:
  AsynchChannel, AsynchChannelServer, ChannelServer, InputAsynchChannel, InputSynchChannel, OutputChannel, RequestChannel, SynchChannel, SynchChannelServer

All Known Implementing Classes:
  AIOAsynchChannel, AIOSynchChannelServer, AsynchChannelToClientRequestChannel, AsynchChannelToConcurrentRequestChannel, AsynchChannelToServerRequestChannel, AsynchToSynchChannelAdapter, AsynchToSynchChannelServerAdapter, DatagramSocketSynchChannel, FilterAsynchChannel, FilterAsynchChannelServer, FilterSynchChannel, FilterSynchChannelServer, NIOAsynchChannel, NIOSynchChannel, SocketSynchChannel, SocketSynchChannelServer, SynchToAsynchChannelAdapter, SynchToAsynchChannelServerAdapter, VMPipeAsynchChannelFactory.ClassloaderAsynchChannelAdapter, VMPipeAsynchChannelPipe.PipeChannel, VMPipeAsynchChannelServer

public interface Channel
extends Disposable, Service

A Channel provides a standard procedure for regulating data transmission between applications. The activeio API encourages that layered wire protocols be created by wiring together a chain of Channel objects.

Version:
  $Revision$

Field Summary

Fields inherited from interface org.activeio.Service
`NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT`

Method Summary
`java.lang.Object` | `narrow(java.lang.Class target)` Since a Channel may be composed from a chain of other Channel obejcts, this method allows you to query the chain for the specified interface.

Methods inherited from interface org.activeio.Disposable
`dispose`

Methods inherited from interface org.activeio.Service
`start, stop`

Method Detail

### narrow

    public java.lang.Object narrow(java.lang.Class target)

  Since a Channel may be composed from a chain of other Channel obejcts, this method allows you to query the chain for the specified interface. The first Channel in the chain the implments the requested interface will be return an implementing object. If no Channel in the chain implements the requested class, then null is returned.

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.