Class TcpIpPort.IOLinkConsumer

    • Constructor Summary

      Constructors 
      Constructor Description
      IOLinkConsumer​(LinkConsumer link, java.net.InetSocketAddress sender, int consID)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disconnect()
      When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up.
      boolean isDisconnected()  
      void linkConsume​(long txID, java.nio.ByteBuffer payload)
      Delegate payload consumption to the nested Link Consumer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sender

        public final java.net.InetSocketAddress sender
      • disconnectFlag

        protected boolean disconnectFlag
    • Constructor Detail

      • IOLinkConsumer

        public IOLinkConsumer​(LinkConsumer link,
                              java.net.InetSocketAddress sender,
                              int consID)
    • Method Detail

      • linkConsume

        public void linkConsume​(long txID,
                                java.nio.ByteBuffer payload)
        Delegate payload consumption to the nested Link Consumer.
        Specified by:
        linkConsume in interface LinkConsumer
        Parameters:
        txID -
        payload -
      • disconnect

        public void disconnect()
        Description copied from interface: AppLinkBase
        When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up. It should close the connection when called by the application.
        Specified by:
        disconnect in interface AppLinkBase