public abstract class AbstractTcpPacketHandler extends Object implements ActiveObject
Base class for threads handling the outgoing/incoming traffic on a TCP socket
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected long |
lastActivity |
protected PacketTransportListener |
listener |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTcpPacketHandler(String id,
PacketTransportListener listener)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Get the handler id
|
long |
getLastActivity()
Get a timestamp of this object's last activity
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTimeoutDelay, onActivityTimeoutprotected String id
protected PacketTransportListener listener
protected long lastActivity
protected AbstractTcpPacketHandler(String id, PacketTransportListener listener)
public final String getId()
public final long getLastActivity()
ActiveObjectgetLastActivity in interface ActiveObjectCopyright © 2021. All rights reserved.