waitUntilTrueWithInterruption
Blocks the current thread until monitorSatisfied returns true. This method can be interrupted.
Throws
if the thread is interrupted while waiting.
Blocks the current thread until monitorSatisfied returns true or the timeout expires. This method can be interrupted.
Return
true if the condition was satisfied, false if the wait timed out.
Parameters
the maximum duration to wait.
Throws
if the thread is interrupted while waiting.
Repeatedly waits (interruptibly) for the condition to become true, invoking block on each timeout.
Return
true if the condition was satisfied, false if the block returned false.
Parameters
the duration for each individual wait attempt.
the action invoked on each timeout; return false to stop waiting.
Throws
if the thread is interrupted while waiting.
Repeatedly waits (interruptibly) for the condition to become true, invoking block on each timeout, up to an overall maximum wait duration.
Return
true if the condition was satisfied, false if maxWait elapsed or block returned false.
Parameters
the duration for each individual wait attempt.
the overall maximum duration to wait. Use a negative value for no limit.
the action invoked on each timeout; return false to stop waiting. May be null.
Throws
if the thread is interrupted while waiting.