org.activeio
Interface Channel

All Superinterfaces:
Disposable, Service
All Known Subinterfaces:
AsyncChannel, AsyncChannelServer, AsyncCommandChannel, AsynchChannel, ChannelServer, InputAsyncChannel, InputStreamChannel, InputSyncChannel, OutputChannel, OutputStreamChannel, RequestChannel, StreamChannel, StreamChannelServer, SyncChannel, SyncChannelServer
All Known Implementing Classes:
AsyncChannelToAsyncCommandChannel, AsyncChannelToClientRequestChannel, AsyncChannelToConcurrentRequestChannel, AsyncChannelToServerRequestChannel, AsyncToSyncChannel, AsyncToSyncChannelServer, DatagramSocketSyncChannel, FilterAsyncChannel, FilterAsyncChannelServer, FilterSyncChannel, FilterSyncChannelServer, NIOAsyncChannel, NIOSyncChannel, SocketStreamChannel, SocketStreamChannelServer, SocketSyncChannel, SocketSyncChannelServer, SyncToAsyncChannel, SyncToAsyncChannelServer, VMPipeAsyncChannelFactory.ClassloaderAsyncChannelAdapter, VMPipeAsyncChannelPipe.PipeChannel, VMPipeAsyncChannelServer

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
 Object narrow(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 Object narrow(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.



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