Package com.automation_pros.odva.logix
Class LgxTag.TagConsumer
- java.lang.Object
-
- com.automation_pros.odva.logix.LgxTag.TagConsumer
-
- All Implemented Interfaces:
AppConsumer
,AppLinkBase
- Enclosing class:
- LgxTag
public class LgxTag.TagConsumer extends java.lang.Object implements AppConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
disconnectFlag
protected boolean
notClassZero
protected AppOwner
owner
protected ConxClass.CxParams
params
-
Constructor Summary
Constructors Constructor Description TagConsumer(AppOwner owner2, ConxClass.CxParams params, byte dirtrigcls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appConsume(long txID, java.nio.ByteBuffer payload)
Application Consumer objects handle data flow from connections to application objects.void
disconnect()
When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up.boolean
isDisconnected()
-
-
-
Field Detail
-
owner
protected final AppOwner owner
-
params
protected final ConxClass.CxParams params
-
notClassZero
protected final boolean notClassZero
-
disconnectFlag
protected boolean disconnectFlag
-
-
Constructor Detail
-
TagConsumer
public TagConsumer(AppOwner owner2, ConxClass.CxParams params, byte dirtrigcls)
-
-
Method Detail
-
appConsume
public void appConsume(long txID, java.nio.ByteBuffer payload)
Description copied from interface:AppConsumer
Application 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:
appConsume
in 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: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
-
-