Class BridgeInConx.BridgeAppConsumer
- java.lang.Object
-
- com.automation_pros.odva.cip.core.BridgeInConx.BridgeAppConsumer
-
- All Implemented Interfaces:
AppConsumer,AppLinkBase
- Enclosing class:
- BridgeInConx
public class BridgeInConx.BridgeAppConsumer extends java.lang.Object implements AppConsumer
Provide application side bridging between outward-facing connections. One will be an instance of BridgeConx. The other will be any Port-defined outbound originator endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description ConxInstanceconx
-
Constructor Summary
Constructors Constructor Description BridgeAppConsumer(ConxInstance conx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappConsume(long txID, java.nio.ByteBuffer payload)Application Consumer objects handle data flow from connections to application objects.voiddisconnect()When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up.booleanisDisconnected()
-
-
-
Field Detail
-
conx
public final ConxInstance conx
-
-
Constructor Detail
-
BridgeAppConsumer
public BridgeAppConsumer(ConxInstance conx)
-
-
Method Detail
-
appConsume
public void appConsume(long txID, java.nio.ByteBuffer payload)Description copied from interface:AppConsumerApplication Consumer objects handle data flow from connections to application objects. Connectable objects will provide instances with the appropriate buffer handling and ownership tracking, including removal/use of CIP short sequence numbers and originator idle/run mode indicators. Bridge connections cross connect their application consumers, passing the complete payload to the peer's appProduce() method.- Specified by:
appConsumein interfaceAppConsumer- Parameters:
txID- Transport layer transaction ID to use with any reply.payload- Complete CIP data payload, including CIP sequence number, if any.
-
disconnect
public void disconnect()
Description copied from interface:AppLinkBaseWhen 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:
disconnectin interfaceAppLinkBase
-
isDisconnected
public boolean isDisconnected()
- Specified by:
isDisconnectedin interfaceAppLinkBase
-
-