Class Monitor.Guard
- java.lang.Object
-
- com.google.common.util.concurrent.Monitor.Guard
-
- Enclosing class:
- Monitor
@Beta @Deprecated(since="2022-12-01") public abstract static class Monitor.Guard extends java.lang.Object
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023A boolean condition for which a thread may wait. AGuard
is associated with a singleMonitor
. 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.If a
Guard
is passed into any method of aMonitor
other than the one it is associated with, anIllegalMonitorStateException
is thrown.- Since:
- 10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description abstract boolean
isSatisfied()
Deprecated.Evaluates this guard's boolean condition.
-
-
-
Method Detail
-
isSatisfied
public abstract boolean isSatisfied()
Deprecated.Evaluates this guard's boolean condition. This method is always called with the associated monitor already occupied. Implementations of this method must depend only on state protected by the associated monitor, and must not modify that state.
-
-