Class ServerTimeOutManager
java.lang.Object
org.eclnt.jsfserver.monitoring.servertimeout.ServerTimeOutManager
- All Implemented Interfaces:
ICCConfigurationObjectWithInitialize,IServerTimeOutManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTimeOutListener(IServerTimeOutListener listener) longvoidinitialize(jakarta.servlet.ServletContext servletContext) Is called by CaptainCasa environment after the instance is created.voidRemove current server timeout definition - no time out is defined anymore afterwards.voidremoveTimeOutListener(IServerTimeOutListener listener) voidTell 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(jakarta.servlet.ServletContext servletContext) Description copied from interface:IServerTimeOutManagerIs called by CaptainCasa environment after the instance is created.- Specified by:
initializein interfaceICCConfigurationObjectWithInitialize- Specified by:
initializein interfaceIServerTimeOutManager
-
addTimeOutListener
- Specified by:
addTimeOutListenerin interfaceIServerTimeOutManager
-
removeTimeOutListener
- Specified by:
removeTimeOutListenerin interfaceIServerTimeOutManager
-
triggerServerTimeout
Description copied from interface:IServerTimeOutManagerTell the server node that it will be timed out at a certain point of time.- Specified by:
triggerServerTimeoutin interfaceIServerTimeOutManager
-
removeCurrentServerTimeOut
public void removeCurrentServerTimeOut()Description copied from interface:IServerTimeOutManagerRemove current server timeout definition - no time out is defined anymore afterwards.- Specified by:
removeCurrentServerTimeOutin interfaceIServerTimeOutManager
-
findCurrentDurationUntilServerTimeOut
public long findCurrentDurationUntilServerTimeOut()- Specified by:
findCurrentDurationUntilServerTimeOutin interfaceIServerTimeOutManager- Returns:
- negative: no timeout defined; 0: timeout already in past; >0: timeout is scheduled
-