Class LinkProducerAdapter

  • All Implemented Interfaces:
    AppLinkBase, LinkProducer

    public class LinkProducerAdapter
    extends java.lang.Object
    implements LinkProducer
    Provides a generic intermediary between an LinkProducer and its owner. Intended to be overridden by anonymous classes where a specific link producer's behaviour needs to be adjusted. Otherwise passes the method calls through to the real producer.
    • 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 linkProduce​(long txID, java.nio.ByteBuffer payload)
      Link Producer objects handle data flow from generic connections to abstract transport links.
      • Methods inherited from class java.lang.Object

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

      • LinkProducerAdapter

        public LinkProducerAdapter​(LinkProducer producer)
    • 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
      • linkProduce

        public void linkProduce​(long txID,
                                java.nio.ByteBuffer payload)
        Description copied from interface: LinkProducer
        Link Producer objects handle data flow from generic connections to abstract transport links. When carrying messaging traffic, the txID uniquely identifies the request/reply pair; typically the encapsulation sender context.
        Specified by:
        linkProduce in interface LinkProducer
        Parameters:
        txID - Transport layer transaction ID uniquely identifying this message or reply, if applicable. Zero for I/O connections.
        payload - Complete CIP data payload, including CIP sequence number, if any.