Package org.objectweb.joram.mom.proxies
Class UserAgent.HeartBeatTask
- java.lang.Object
-
- java.util.TimerTask
-
- org.objectweb.joram.mom.proxies.UserAgent.HeartBeatTask
-
- All Implemented Interfaces:
Externalizable,Serializable,Runnable
- Enclosing class:
- UserAgent
class UserAgent.HeartBeatTask extends TimerTask implements Externalizable
Timer task responsible for closing the connection if it has not sent any requests for the duration 'timeout'.
-
-
Constructor Summary
Constructors Constructor Description HeartBeatTask()HeartBeatTask(int timeout, Integer key, AgentId userId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(ObjectInput in)voidrun()voidstart()voidtouch()voidwriteExternal(ObjectOutput out)-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
start
public void start() throws IOException- Throws:
IOException
-
touch
public void touch()
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException- See Also:
Externalizable.readExternal(java.io.ObjectInput)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- See Also:
Externalizable.writeExternal(java.io.ObjectOutput)
-
-