Package com.automation_pros.odva.encap
Class TcpIpPort.IOLinkConsumer
- java.lang.Object
-
- com.automation_pros.odva.encap.TcpIpPort.IOLinkConsumer
-
- All Implemented Interfaces:
AppLinkBase
,LinkConsumer
- Direct Known Subclasses:
TcpIpPort.McastLinkConsumer
- Enclosing class:
- TcpIpPort
public class TcpIpPort.IOLinkConsumer extends java.lang.Object implements LinkConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
disconnectFlag
LinkConsumer
link
java.net.InetSocketAddress
sender
-
Constructor Summary
Constructors Constructor Description IOLinkConsumer(LinkConsumer link, java.net.InetSocketAddress sender, int consID)
-
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)
Delegate payload consumption to the nested Link Consumer.
-
-
-
Field Detail
-
link
public final LinkConsumer link
-
sender
public final java.net.InetSocketAddress sender
-
disconnectFlag
protected boolean disconnectFlag
-
-
Constructor Detail
-
IOLinkConsumer
public IOLinkConsumer(LinkConsumer link, java.net.InetSocketAddress sender, int consID)
-
-
Method Detail
-
linkConsume
public void linkConsume(long txID, java.nio.ByteBuffer payload)
Delegate payload consumption to the nested Link Consumer.- Specified by:
linkConsume
in interfaceLinkConsumer
- Parameters:
txID
-payload
-
-
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
-
-