Package jadex.bridge.component.streams
Class LocalInputConnectionHandler
- java.lang.Object
-
- jadex.bridge.component.streams.LocalAbstractConnectionHandler
-
- jadex.bridge.component.streams.LocalInputConnectionHandler
-
- All Implemented Interfaces:
IAbstractConnectionHandler
,IInputConnectionHandler
public class LocalInputConnectionHandler extends LocalAbstractConnectionHandler implements IInputConnectionHandler
Local version of the input connection handler.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
maxstored
The maximum bytes of data that can be stored in connection (without being consumed).-
Fields inherited from class jadex.bridge.component.streams.LocalAbstractConnectionHandler
con, conhandler, nonfunc
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class jadex.bridge.component.streams.LocalAbstractConnectionHandler
close, doClose, getConnection, getConnectionHandler, getConnectionId, getNonFunctionalProperties, initReceived, notifyInited, sendInit, setConnection, setConnectionHandler
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.bridge.component.streams.IAbstractConnectionHandler
doClose, getNonFunctionalProperties, notifyInited, sendInit, setConnection
-
-
-
-
Constructor Detail
-
LocalInputConnectionHandler
public LocalInputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc)
Create new local input connection handler.
-
LocalInputConnectionHandler
public LocalInputConnectionHandler(java.util.Map<java.lang.String,java.lang.Object> nonfunc, LocalAbstractConnectionHandler conhandler)
Create new local input connection handler.
-
-
Method Detail
-
dataReceived
public void dataReceived(byte[] data)
Called by local output connection handler to send data.
-
notifyDataRead
public void notifyDataRead()
Called by connection when user read some data so that other side can continue to send.- Specified by:
notifyDataRead
in interfaceIInputConnectionHandler
-
getAllowedSendSize
public int getAllowedSendSize()
Get the allowed size that can be accepted (send by the output side).
-
-