class UserAgent.HeartBeatTask extends TimerTask implements Externalizable
Modifier and Type | Field and Description |
---|---|
private Integer |
key |
private long |
lastRequestDate |
private int |
timeout
Maximum time between two requests on the connection (This value is
normally the double of the hear-beat period).
|
private AgentId |
userId |
Constructor and Description |
---|
UserAgent.HeartBeatTask() |
UserAgent.HeartBeatTask(int timeout,
Integer key,
AgentId userId) |
Modifier and Type | Method and Description |
---|---|
void |
readExternal(ObjectInput in) |
void |
run() |
void |
start() |
void |
touch() |
void |
writeExternal(ObjectOutput out) |
cancel, scheduledExecutionTime
private transient int timeout
private transient Integer key
private transient long lastRequestDate
private transient AgentId userId
public void start() throws IOException
IOException
public void touch()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Externalizable.writeExternal(java.io.ObjectOutput)
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.