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.
  • Constructor Details

    • IdleTimeLimitThread

      public IdleTimeLimitThread(ServerContext serverContext)
      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.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • 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 interface ServerShutdownListener
      Parameters:
      reason - The human-readable reason for the shutdown.