Class ServerTimeOutManager
java.lang.Object
org.eclnt.jsfserver.monitoring.servertimeout.ServerTimeOutManager
- All Implemented Interfaces:
ICCConfigurationObjectWithInitialize
,IServerTimeOutManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTimeOutListener
(IServerTimeOutListener listener) long
void
initialize
(javax.servlet.ServletContext servletContext) Is called by CaptainCasa environment after the instance is created.void
Remove current server timeout definition - no time out is defined anymore afterwards.void
removeTimeOutListener
(IServerTimeOutListener listener) void
Tell the server node that it will be timed out at a certain point of time.
-
Constructor Details
-
ServerTimeOutManager
public ServerTimeOutManager()
-
-
Method Details
-
initialize
public void initialize(javax.servlet.ServletContext servletContext) Description copied from interface:IServerTimeOutManager
Is called by CaptainCasa environment after the instance is created.- Specified by:
initialize
in interfaceICCConfigurationObjectWithInitialize
- Specified by:
initialize
in interfaceIServerTimeOutManager
-
addTimeOutListener
- Specified by:
addTimeOutListener
in interfaceIServerTimeOutManager
-
removeTimeOutListener
- Specified by:
removeTimeOutListener
in interfaceIServerTimeOutManager
-
triggerServerTimeout
Description copied from interface:IServerTimeOutManager
Tell the server node that it will be timed out at a certain point of time.- Specified by:
triggerServerTimeout
in interfaceIServerTimeOutManager
-
removeCurrentServerTimeOut
public void removeCurrentServerTimeOut()Description copied from interface:IServerTimeOutManager
Remove current server timeout definition - no time out is defined anymore afterwards.- Specified by:
removeCurrentServerTimeOut
in interfaceIServerTimeOutManager
-
findCurrentDurationUntilServerTimeOut
public long findCurrentDurationUntilServerTimeOut()- Specified by:
findCurrentDurationUntilServerTimeOut
in interfaceIServerTimeOutManager
- Returns:
- negative: no timeout defined; 0: timeout already in past; >0: timeout is scheduled
-