Uses of Class
com.google.common.util.concurrent.Monitor.Guard
Packages that use Monitor.Guard
-
Uses of Monitor.Guard in com.google.common.util.concurrent
Subclasses of Monitor.Guard in com.google.common.util.concurrentModifier and TypeClassDescriptionprivate final classprivate final classprivate final classprivate final class(package private) final class(package private) final classFields in com.google.common.util.concurrent declared as Monitor.GuardModifier and TypeFieldDescriptionprivate Monitor.GuardMonitor.activeGuardsThe guards associated with this monitor that currently have waiters (waiterCount > 0).(package private) final Monitor.GuardServiceManager.ServiceManagerState.awaitHealthGuardControls how long to wait for all the services to either become healthy or reach a state from which it is guaranteed that it can never become healthy.private final Monitor.GuardAbstractService.hasReachedRunningprivate final Monitor.GuardAbstractService.isStartableprivate final Monitor.GuardAbstractService.isStoppableprivate final Monitor.GuardAbstractService.isStopped(package private) Monitor.GuardMonitor.Guard.nextThe next active guard(package private) final Monitor.GuardServiceManager.ServiceManagerState.stoppedGuardControls how long to wait for all services to reach a terminal state.Methods in com.google.common.util.concurrent that return Monitor.GuardModifier and TypeMethodDescriptionMonitor.newGuard(BooleanSupplier isSatisfied) Creates a new guard for this monitor.Methods in com.google.common.util.concurrent with parameters of type Monitor.GuardModifier and TypeMethodDescriptionprivate voidMonitor.await(Monitor.Guard guard, boolean signalBeforeWaiting) private booleanMonitor.awaitNanos(Monitor.Guard guard, long nanos, boolean signalBeforeWaiting) Caller should check before calling that guard is not satisfied.private voidMonitor.awaitUninterruptibly(Monitor.Guard guard, boolean signalBeforeWaiting) private voidMonitor.beginWaitingFor(Monitor.Guard guard) Records that the current thread is about to wait on the specified guard.private voidMonitor.endWaitingFor(Monitor.Guard guard) Records that the current thread is no longer waiting on the specified guard.booleanMonitor.enterIf(Monitor.Guard guard) Enters this monitor if the guard is satisfied.booleanMonitor.enterIf(Monitor.Guard guard, long time, TimeUnit unit) Enters this monitor if the guard is satisfied.booleanMonitor.enterIf(Monitor.Guard guard, Duration time) Enters this monitor if the guard is satisfied.booleanMonitor.enterIfInterruptibly(Monitor.Guard guard) Enters this monitor if the guard is satisfied.booleanMonitor.enterIfInterruptibly(Monitor.Guard guard, long time, TimeUnit unit) Enters this monitor if the guard is satisfied.booleanMonitor.enterIfInterruptibly(Monitor.Guard guard, Duration time) Enters this monitor if the guard is satisfied.voidMonitor.enterWhen(Monitor.Guard guard) Enters this monitor when the guard is satisfied.booleanMonitor.enterWhen(Monitor.Guard guard, long time, TimeUnit unit) Enters this monitor when the guard is satisfied.booleanMonitor.enterWhen(Monitor.Guard guard, Duration time) Enters this monitor when the guard is satisfied.voidMonitor.enterWhenUninterruptibly(Monitor.Guard guard) Enters this monitor when the guard is satisfied.booleanMonitor.enterWhenUninterruptibly(Monitor.Guard guard, long time, TimeUnit unit) Enters this monitor when the guard is satisfied.booleanMonitor.enterWhenUninterruptibly(Monitor.Guard guard, Duration time) Enters this monitor when the guard is satisfied.intMonitor.getWaitQueueLength(Monitor.Guard guard) Returns an estimate of the number of threads waiting for the given guard to become satisfied.booleanMonitor.hasWaiters(Monitor.Guard guard) Queries whether any threads are waiting for the given guard to become satisfied.private booleanMonitor.isSatisfied(Monitor.Guard guard) Exactly like guard.isSatisfied(), but in addition signals all waiting threads in the (hopefully unlikely) event that isSatisfied() throws.booleanMonitor.tryEnterIf(Monitor.Guard guard) Enters this monitor if it is possible to do so immediately and the guard is satisfied.voidMonitor.waitFor(Monitor.Guard guard) Waits for the guard to be satisfied.booleanMonitor.waitFor(Monitor.Guard guard, long time, TimeUnit unit) Waits for the guard to be satisfied.booleanMonitor.waitFor(Monitor.Guard guard, Duration time) Waits for the guard to be satisfied.voidMonitor.waitForUninterruptibly(Monitor.Guard guard) Waits for the guard to be satisfied.booleanMonitor.waitForUninterruptibly(Monitor.Guard guard, long time, TimeUnit unit) Waits for the guard to be satisfied.booleanMonitor.waitForUninterruptibly(Monitor.Guard guard, Duration time) Waits for the guard to be satisfied.