GenericMonitor
Abstract base class providing thread-blocking wait methods backed by a Guava Monitor.
Subclasses must implement monitorSatisfied to define when the monitor's condition is met. Methods are provided to wait until the condition is true or false, with optional timeouts, interruptibility, and retry callbacks.
Inheritors
Properties
Functions
Blocks the current thread until monitorSatisfied returns false. This method is not interruptible.
Blocks the current thread until monitorSatisfied returns false or the timeout expires. This method is not interruptible.
Repeatedly waits for the condition to become false, invoking block on each timeout.
Repeatedly waits for the condition to become false, invoking block on each timeout, up to an overall maximum wait duration.
Blocks the current thread until monitorSatisfied returns true. This method is not interruptible.
Blocks the current thread until monitorSatisfied returns true or the timeout expires. This method is not interruptible.
Repeatedly waits for the condition to become true, invoking block on each timeout.
Repeatedly waits for the condition to become true, invoking block on each timeout, up to an overall maximum wait duration.
Blocks the current thread until monitorSatisfied returns true. This method can be interrupted.
Blocks the current thread until monitorSatisfied returns true or the timeout expires. This method can be interrupted.
Repeatedly waits (interruptibly) for the condition to become true, invoking block on each timeout.
Repeatedly waits (interruptibly) for the condition to become true, invoking block on each timeout, up to an overall maximum wait duration.