@Beta public abstract static class Monitor.Guard extends Object
Guardis associated with a single
Monitor. The monitor may check the guard at arbitrary times from any thread occupying the monitor, so code should not be written to rely on how often a guard might or might not be checked.
Guard is passed into any method of a
Monitor other than the one it is
associated with, an
IllegalMonitorStateException is thrown.
|Modifier||Constructor and Description|
|Modifier and Type||Method and Description|
Evaluates this guard's boolean condition.
public abstract boolean isSatisfied()
Copyright © 2010-2016. All Rights Reserved.