Class LinkConsumerAdapter

    • 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)
      Link Consumer objects handle data flow from transport links to connections.
      • Methods inherited from class java.lang.Object

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

      • LinkConsumerAdapter

        public LinkConsumerAdapter​(LinkConsumer consumer)
    • Method Detail

      • 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
      • linkConsume

        public void linkConsume​(long txID,
                                java.nio.ByteBuffer payload)
        Description copied from interface: LinkConsumer
        Link Consumer objects handle data flow from transport links to connections. Connection instances implement this interface with the appropriate buffer handling.
        Specified by:
        linkConsume in interface LinkConsumer
        Parameters:
        txID - Transport layer transaction ID to use with any reply.
        payload - Complete CIP data payload, including CIP sequence number, if any.