public abstract class AbstractChannelInput<T> extends Object implements ChannelInput<T>
| Constructor and Description |
|---|
AbstractChannelInput() |
AbstractChannelInput(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract T |
doRead() |
protected abstract T |
doRead(long timeout) |
String |
getName() |
boolean |
isClosed() |
Iterator<T> |
iterator() |
T |
read()
Reads an Object from the Channel.
|
T |
read(long timeout)
Reads an Object from the Channel.
|
void |
readConnect() |
void |
readDisconnect() |
String |
toString() |
public AbstractChannelInput()
public AbstractChannelInput(String name)
public void close()
protected abstract T doRead()
protected abstract T doRead(long timeout)
public String getName()
public boolean isClosed()
public T read()
read in interface ChannelInput<T>public T read(long timeout)
read in interface ChannelInput<T>timeout - The maximum time to wait in milliseconds.public void readConnect()
readConnect in interface ChannelInput<T>public void readDisconnect()
readDisconnect in interface ChannelInput<T>Copyright © 2015 Revolution Systems Inc.. All rights reserved.