Class IdleTimeLimitThread
java.lang.Object
org.opends.server.api.DirectoryThread
org.opends.server.core.IdleTimeLimitThread
- All Implemented Interfaces:
AlertGenerator, ServerShutdownListener
This class defines a thread that will be used to terminate client connections if they have been idle for too long.
-
Constructor Summary
ConstructorsConstructorDescriptionIdleTimeLimitThread(ServerContext serverContext) Creates a new instance of this idle time limit thread. -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates that the Directory Server has received a request to stop running and that this shutdown listener should take any action necessary to prepare for it.voidrun()Operates in a loop, terminating any client connections that have been idle for too long.Methods inherited from class DirectoryThread
checkForShutdownOrWait, checkForShutdownOrWait, currentDirectoryThread, getAlerts, getAssociatedTask, getClassName, getComponentEntryDn, getName, getServerContext, getStackTrace, initiateShutdown, interrupt, isAlive, isDaemon, isShutdownInitiated, isStarted, isStarting, join, join, setAssociatedTask, setDaemon, setName, start, thread, wakeup
-
Constructor Details
-
IdleTimeLimitThread
Creates a new instance of this idle time limit thread.- Parameters:
serverContext- the server context
-
-
Method Details
-
run
public void run()Operates in a loop, terminating any client connections that have been idle for too long.- Overrides:
runin classDirectoryThread
-
processServerShutdown
Description copied from interface:ServerShutdownListenerIndicates that the Directory Server has received a request to stop running and that this shutdown listener should take any action necessary to prepare for it.- Specified by:
processServerShutdownin interfaceServerShutdownListener- Parameters:
reason- The human-readable reason for the shutdown.
-