org.activeio.filter
Class PushbackSyncChannel
java.lang.Object
org.activeio.FilterSyncChannel
org.activeio.filter.PushbackSyncChannel
- All Implemented Interfaces:
- Channel, Disposable, InputSyncChannel, OutputChannel, Service, SyncChannel
public class PushbackSyncChannel
- extends FilterSyncChannel
Method Summary |
void |
putback(Packet packet)
|
Packet |
read(long timeout)
Used to synchronously receive a packet of information going 'up' the channel. |
PushbackSyncChannel
public PushbackSyncChannel(SyncChannel next)
PushbackSyncChannel
public PushbackSyncChannel(SyncChannel next,
Packet putback)
putback
public void putback(Packet packet)
read
public Packet read(long timeout)
throws IOException
- Description copied from interface:
InputSyncChannel
- Used to synchronously receive a packet of information going 'up' the channel.
This method blocks until a packet is received or the operation experiences timeout.
- Specified by:
read
in interface InputSyncChannel
- Overrides:
read
in class FilterSyncChannel
- Returns:
- the packet received or null if the timeout occurred.
- Throws:
IOException
- See Also:
InputSyncChannel.read(long)
Copyright © -2009 The ActiveIO Project. All Rights Reserved.