Class CriticalSection.UnsynchronizedCriticalSection
java.lang.Object
org.eclipse.net4j.util.concurrent.CriticalSection.UnsynchronizedCriticalSection
- All Implemented Interfaces:
CriticalSection
- Enclosing interface:
CriticalSection
public static class CriticalSection.UnsynchronizedCriticalSection
extends Object
implements CriticalSection
A
CriticalSection implementation that does not perform any synchronization. This implementation is useful
for scenarios where synchronization is not required, such as single-threaded applications or testing environments.- 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> Vvoidbooleansupply(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
-
UnsynchronizedCriticalSection
public UnsynchronizedCriticalSection()
-
-
Method Details
-
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
-