Class LocalInputConnectionHandler

    • Field Detail

      • maxstored

        protected int maxstored
        The maximum bytes of data that can be stored in connection (without being consumed).
    • 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 interface IInputConnectionHandler
      • getAllowedSendSize

        public int getAllowedSendSize()
        Get the allowed size that can be accepted (send by the output side).