Package | Description |
---|---|
com.google.common.util.concurrent |
Concurrency utilities.
|
Modifier and Type | Method and Description |
---|---|
Monitor.Guard |
Monitor.newGuard(BooleanSupplier isSatisfied)
Creates a new guard for this monitor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Monitor.enterIf(Monitor.Guard guard)
Enters this monitor if the guard is satisfied.
|
boolean |
Monitor.enterIf(Monitor.Guard guard,
Duration time)
Enters this monitor if the guard is satisfied.
|
boolean |
Monitor.enterIf(Monitor.Guard guard,
long time,
TimeUnit unit)
Enters this monitor if the guard is satisfied.
|
boolean |
Monitor.enterIfInterruptibly(Monitor.Guard guard)
Enters this monitor if the guard is satisfied.
|
boolean |
Monitor.enterIfInterruptibly(Monitor.Guard guard,
Duration time)
Enters this monitor if the guard is satisfied.
|
boolean |
Monitor.enterIfInterruptibly(Monitor.Guard guard,
long time,
TimeUnit unit)
Enters this monitor if the guard is satisfied.
|
void |
Monitor.enterWhen(Monitor.Guard guard)
Enters this monitor when the guard is satisfied.
|
boolean |
Monitor.enterWhen(Monitor.Guard guard,
Duration time)
Enters this monitor when the guard is satisfied.
|
boolean |
Monitor.enterWhen(Monitor.Guard guard,
long time,
TimeUnit unit)
Enters this monitor when the guard is satisfied.
|
void |
Monitor.enterWhenUninterruptibly(Monitor.Guard guard)
Enters this monitor when the guard is satisfied.
|
boolean |
Monitor.enterWhenUninterruptibly(Monitor.Guard guard,
Duration time)
Enters this monitor when the guard is satisfied.
|
boolean |
Monitor.enterWhenUninterruptibly(Monitor.Guard guard,
long time,
TimeUnit unit)
Enters this monitor when the guard is satisfied.
|
int |
Monitor.getWaitQueueLength(Monitor.Guard guard)
Returns an estimate of the number of threads waiting for the given guard to become satisfied.
|
boolean |
Monitor.hasWaiters(Monitor.Guard guard)
Queries whether any threads are waiting for the given guard to become satisfied.
|
boolean |
Monitor.tryEnterIf(Monitor.Guard guard)
Enters this monitor if it is possible to do so immediately and the guard is satisfied.
|
void |
Monitor.waitFor(Monitor.Guard guard)
Waits for the guard to be satisfied.
|
boolean |
Monitor.waitFor(Monitor.Guard guard,
Duration time)
Waits for the guard to be satisfied.
|
boolean |
Monitor.waitFor(Monitor.Guard guard,
long time,
TimeUnit unit)
Waits for the guard to be satisfied.
|
void |
Monitor.waitForUninterruptibly(Monitor.Guard guard)
Waits for the guard to be satisfied.
|
boolean |
Monitor.waitForUninterruptibly(Monitor.Guard guard,
Duration time)
Waits for the guard to be satisfied.
|
boolean |
Monitor.waitForUninterruptibly(Monitor.Guard guard,
long time,
TimeUnit unit)
Waits for the guard to be satisfied.
|
Copyright © 2010–2019. All rights reserved.