edu.cuny.cat.comm
Class TimableCatpProactiveSession
java.lang.Object
edu.cuny.cat.comm.Session<CatpMessage>
edu.cuny.cat.comm.CatpProactiveSession
edu.cuny.cat.comm.TimableCatpProactiveSession
public abstract class TimableCatpProactiveSession
- extends CatpProactiveSession
This class processes a time-sensitive request/response session initiated by
the current party.
- Version:
- $Revision: 1.8 $
- Author:
- Jinzhong Niu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimableCatpProactiveSession
public TimableCatpProactiveSession(Connection<CatpMessage> connection)
TimableCatpProactiveSession
public TimableCatpProactiveSession(Connection<CatpMessage> connection,
CatpRequest request)
processResponse
public void processResponse(CatpResponse response)
throws CatException
- Overrides:
processResponse
in class CatpProactiveSession
- Throws:
CatException
cancelTimeOutAction
public void cancelTimeOutAction()
forceOut
public boolean forceOut()
- Description copied from class:
Session
- cleans up if this session has to terminate abnormally.
- Overrides:
forceOut
in class CatpProactiveSession
- Returns:
- if the early termination is successful or not.
setTimeoutAction
public void setTimeoutAction(TimeoutTask timeoutAction)
getTimeoutAction
public TimeoutTask getTimeoutAction()
timeoutWrapper
protected void timeoutWrapper()
timeout
public abstract void timeout()
- called by
timeoutAction
to process a timeout.