Package org.opends.server.core
Class IdleTimeLimitThread
- java.lang.Object
-
- java.lang.Thread
-
- org.opends.server.api.DirectoryThread
-
- org.opends.server.core.IdleTimeLimitThread
-
- All Implemented Interfaces:
Runnable
,ServerShutdownListener
public final class IdleTimeLimitThread extends DirectoryThread implements ServerShutdownListener
This class defines a thread that will be used to terminate client connections if they have been idle for too long.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class org.opends.server.api.DirectoryThread
DIRECTORY_THREAD_GROUP
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description IdleTimeLimitThread(ServerContext serverContext)
Creates a new instance of this idle time limit thread.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processServerShutdown(LocalizableMessage reason)
Indicates 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.void
run()
Operates in a loop, terminating any client connections that have been idle for too long.-
Methods inherited from class org.opends.server.api.DirectoryThread
getAssociatedTask, getDebugProperties, initiateShutdown, isShutdownInitiated, isStarted, isStarting, setAssociatedTask
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
IdleTimeLimitThread
public IdleTimeLimitThread(ServerContext serverContext)
Creates a new instance of this idle time limit thread.- Parameters:
serverContext
- the server context
-
-
Method Detail
-
run
public void run()
Operates in a loop, terminating any client connections that have been idle for too long.
-
processServerShutdown
public void processServerShutdown(LocalizableMessage reason)
Description copied from interface:ServerShutdownListener
Indicates 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:
processServerShutdown
in interfaceServerShutdownListener
- Parameters:
reason
- The human-readable reason for the shutdown.
-
-