Package org.forgerock.opendj.ldap
Class TimeoutChecker
java.lang.Object
org.forgerock.opendj.ldap.TimeoutChecker
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.forgerock.opendj.util.ReferenceCountedObject<TimeoutChecker> Global reference on the timeout checker. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TimeoutEventListener listener) Registers a timeout event listener for timeout notification.voidremoveListener(TimeoutEventListener listener) Deregisters a timeout event listener for timeout notification.
-
Field Details
-
TIMEOUT_CHECKER
public static final com.forgerock.opendj.util.ReferenceCountedObject<TimeoutChecker> TIMEOUT_CHECKERGlobal reference on the timeout checker.
-
-
Method Details
-
addListener
Registers a timeout event listener for timeout notification.- Parameters:
listener- The timeout event listener.
-
removeListener
Deregisters a timeout event listener for timeout notification.- Parameters:
listener- The timeout event listener.
-