Class TimeoutChecker

java.lang.Object
org.forgerock.opendj.ldap.TimeoutChecker

public final class TimeoutChecker extends Object
Checks TimeoutEventListener listeners for events that have timed out.

All listeners registered with the #addListener() method are called back with TimeoutEventListener#handleTimeout() to be able to handle the timeout.

  • Field Details

    • TIMEOUT_CHECKER

      public static final com.forgerock.opendj.util.ReferenceCountedObject<TimeoutChecker> TIMEOUT_CHECKER
      Global reference on the timeout checker.
  • Method Details

    • addListener

      public void addListener(TimeoutEventListener listener)
      Registers a timeout event listener for timeout notification.
      Parameters:
      listener - The timeout event listener.
    • removeListener

      public void removeListener(TimeoutEventListener listener)
      Deregisters a timeout event listener for timeout notification.
      Parameters:
      listener - The timeout event listener.