public class LocalOutputConnectionHandler extends LocalAbstractConnectionHandler implements IOutputConnectionHandler
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxstored
The maximum bytes of data that can be stored in connection (without being consumed).
|
protected Future<java.lang.Integer> |
readyfuture
The ready future.
|
con, conhandler, nonfunc| Constructor and Description |
|---|
LocalOutputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc) |
LocalOutputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc,
LocalAbstractConnectionHandler conhandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flush the data.
|
void |
ready(int available)
Called by local input connection handler to signal
that user has read some data.
|
IFuture<java.lang.Void> |
send(byte[] data)
Called from connection.
|
IFuture<java.lang.Integer> |
waitForReady()
Wait until the connection is ready for the next write.
|
close, doClose, getConnection, getConnectionHandler, getConnectionId, getNonFunctionalProperties, initReceived, notifyInited, sendInit, setConnection, setConnectionHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoClose, getNonFunctionalProperties, notifyInited, sendInit, setConnectionprotected int maxstored
protected Future<java.lang.Integer> readyfuture
public LocalOutputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc)
public LocalOutputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc,
LocalAbstractConnectionHandler conhandler)
public IFuture<java.lang.Void> send(byte[] data)
send in interface IOutputConnectionHandlerpublic void flush()
flush in interface IOutputConnectionHandlerpublic IFuture<java.lang.Integer> waitForReady()
waitForReady in interface IOutputConnectionHandlerpublic void ready(int available)