net.sf.asyncobjects.io
Interface AChannel<D extends BatchedData<D>,I extends AInput<D>,O extends AOutput<D>>

Type Parameters:
D - a batched data type
I - an input type
O - an output type
All Superinterfaces:
ACloseable, AsyncObject
All Known Subinterfaces:
AByteChannel, ASocket, ATextChannel
All Known Implementing Classes:
BufferedByteChannel, BufferedTextChannel, BytePipe, NIOSocket, Pipe, TextPipe, TSocket, WrappingChannel

public interface AChannel<D extends BatchedData<D>,I extends AInput<D>,O extends AOutput<D>>
extends ACloseable

A generic channel interface

Author:
const

Method Summary
 Promise<I> getInput()
           
 Promise<O> getOutput()
           
 
Methods inherited from interface net.sf.asyncobjects.ACloseable
close
 
Methods inherited from interface net.sf.asyncobjects.AsyncObject
dereference, isImmediate
 

Method Detail

getInput

Promise<I> getInput()
Returns:
input of the channel

getOutput

Promise<O> getOutput()
Returns:
ouput of the channel


Copyright © 2002-2007 Constantine Plotnikov. All Rights Reserved.