Package org.forgerock.opendj.ldap
Interface TimeoutScheduler.TimeoutEventListener
-
- Enclosing class:
- TimeoutScheduler
public static interface TimeoutScheduler.TimeoutEventListener
Listener on timeout events.The task must register itself with a
TimeoutScheduler
usingTimeoutScheduler.scheduleAtFixedRate(TimeoutEventListener)
method to be called back withcheckForTimeout(long)
method.The task must de-register itself using
TimeoutScheduler.removeScheduledTask(TimeoutEventListener)
to stop being called back.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkForTimeout(long currentTime)
Check whether or not an operation timed-out.
-
-
-
Method Detail
-
checkForTimeout
boolean checkForTimeout(long currentTime)
Check whether or not an operation timed-out.- Parameters:
currentTime
- Time to use as current time for any check.- Returns:
true
to be invoked again after a period of time,false
to de-register this task so that it is never invoked again.
-
-