public class LocalInputConnectionHandler extends LocalAbstractConnectionHandler implements IInputConnectionHandler
Modifier and Type | Field and Description |
---|---|
protected int |
maxstored
The maximum bytes of data that can be stored in connection (without being consumed).
|
con, conhandler, nonfunc
Constructor and Description |
---|
LocalInputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create new local input connection handler.
|
LocalInputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc,
LocalAbstractConnectionHandler conhandler)
Create new local input connection handler.
|
Modifier and Type | Method and Description |
---|---|
void |
dataReceived(byte[] data)
Called by local output connection handler to send data.
|
int |
getAllowedSendSize()
Get the allowed size that can be accepted (send by the output side).
|
void |
notifyDataRead()
Called by connection when user read some data
so that other side can continue to send.
|
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
public LocalInputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc)
public LocalInputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc, LocalAbstractConnectionHandler conhandler)
public void dataReceived(byte[] data)
public void notifyDataRead()
notifyDataRead
in interface IInputConnectionHandler
public int getAllowedSendSize()