Class LinkConsumerAdapter
- java.lang.Object
-
- com.automation_pros.odva.cip.types.LinkConsumerAdapter
-
- All Implemented Interfaces:
AppLinkBase
,LinkConsumer
public class LinkConsumerAdapter extends java.lang.Object implements LinkConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkConsumer
consumer
-
Constructor Summary
Constructors Constructor Description LinkConsumerAdapter(LinkConsumer consumer)
-
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.
-
-
-
Field Detail
-
consumer
protected final LinkConsumer consumer
-
-
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 interfaceAppLinkBase
-
isDisconnected
public boolean isDisconnected()
- Specified by:
isDisconnected
in interfaceAppLinkBase
-
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 interfaceLinkConsumer
- Parameters:
txID
- Transport layer transaction ID to use with any reply.payload
- Complete CIP data payload, including CIP sequence number, if any.
-
-