Package org.forgerock.opendj.ldap
Interface TimeoutScheduler.TimeoutEventListener
-
- Enclosing class:
- TimeoutScheduler
public static interface TimeoutScheduler.TimeoutEventListenerListener on timeout events.The task must register itself with a
TimeoutSchedulerusingTimeoutScheduler.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 booleancheckForTimeout(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:
trueto be invoked again after a period of time,falseto de-register this task so that it is never invoked again.
-
-