Class CriticalSection.SynchronizedCriticalSection
java.lang.Object
org.eclipse.net4j.util.concurrent.CriticalSection.SynchronizedCriticalSection
- All Implemented Interfaces:
CriticalSection
- Enclosing interface:
CriticalSection
public static class CriticalSection.SynchronizedCriticalSection
extends Object
implements CriticalSection
A
CriticalSection implementation that uses a given mutex object to synchronize access to the critical
section.- Since:
- 3.29
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface CriticalSection
CriticalSection.LockedCriticalSection, CriticalSection.SynchronizedCriticalSection, CriticalSection.UnsynchronizedCriticalSection -
Field Summary
Fields inherited from interface CriticalSection
UNSYNCHRONIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Vfinal ObjectgetMutex()voidbooleansupply(BooleanSupplier supplier) doublesupply(DoubleSupplier supplier) intsupply(IntSupplier supplier) longsupply(LongSupplier supplier) <V> VMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CriticalSection
call
-
Constructor Details
-
SynchronizedCriticalSection
-
-
Method Details
-
getMutex
-
call
- Specified by:
callin interfaceCriticalSection- Throws:
Exception
-
run
- Specified by:
runin interfaceCriticalSection
-
supply
- Specified by:
supplyin interfaceCriticalSection
-
supply
- Specified by:
supplyin interfaceCriticalSection
-
supply
- Specified by:
supplyin interfaceCriticalSection
-
supply
- Specified by:
supplyin interfaceCriticalSection
-
supply
- Specified by:
supplyin interfaceCriticalSection
-
newCondition
- Specified by:
newConditionin interfaceCriticalSection
-