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, setConnectionHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doClose, getNonFunctionalProperties, notifyInited, sendInit, setConnection
protected 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 IOutputConnectionHandler
public void flush()
flush
in interface IOutputConnectionHandler
public IFuture<java.lang.Integer> waitForReady()
waitForReady
in interface IOutputConnectionHandler
public void ready(int available)