Class CriticalSection.LockedCriticalSection
java.lang.Object
org.eclipse.net4j.util.concurrent.CriticalSection.LockedCriticalSection
- All Implemented Interfaces:
CriticalSection
- Enclosing interface:
CriticalSection
A
CriticalSection implementation that uses a given Lock to synchronize access to the critical
section.- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.concurrent.CriticalSection
CriticalSection.LockedCriticalSection, CriticalSection.SynchronizedCriticalSection, CriticalSection.UnsynchronizedCriticalSection -
Field Summary
Fields inherited from interface org.eclipse.net4j.util.concurrent.CriticalSection
UNSYNCHRONIZED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Vfinal LockgetLock()voidbooleansupply(BooleanSupplier supplier) doublesupply(DoubleSupplier supplier) intsupply(IntSupplier supplier) longsupply(LongSupplier supplier) <V> VMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.net4j.util.concurrent.CriticalSection
call
-
Constructor Details
-
LockedCriticalSection
-
-
Method Details
-
getLock
-
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
-