Package org.forgerock.opendj.ldap
Class TimeoutChecker
- java.lang.Object
-
- org.forgerock.opendj.ldap.TimeoutChecker
-
public final class TimeoutChecker extends Object
ChecksTimeoutEventListener listenersfor events that have timed out.All listeners registered with the
#addListener()method are called back withTimeoutEventListener#handleTimeout()to be able to handle the timeout.
-
-
Field Summary
Fields Modifier and Type Field Description static ReferenceCountedObject<TimeoutChecker>TIMEOUT_CHECKERGlobal reference on the timeout checker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(TimeoutEventListener listener)Registers a timeout event listener for timeout notification.voidremoveListener(TimeoutEventListener listener)Deregisters a timeout event listener for timeout notification.
-
-
-
Field Detail
-
TIMEOUT_CHECKER
public static final ReferenceCountedObject<TimeoutChecker> TIMEOUT_CHECKER
Global reference on the timeout checker.
-
-
Method Detail
-
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.
-
-