Package com.vladsch.plugin.util
Class ReEntryGuard
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
-
- com.vladsch.plugin.util.ReEntryGuard
-
- All Implemented Interfaces:
java.io.Serializable
public class ReEntryGuard extends java.util.concurrent.atomic.AtomicInteger- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReEntryGuard()ReEntryGuard(int initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidguard(@NotNull java.lang.Runnable runnable)voidifUnguarded(boolean ifGuardedRunOnExit, @NotNull java.lang.Runnable runnable)voidifUnguarded(@NotNull java.lang.Runnable runnable)voidifUnguarded(@NotNull java.lang.Runnable runnable, @Nullable java.lang.Runnable runOnGuardExit)booleanunguarded()-
Methods inherited from class java.util.concurrent.atomic.AtomicInteger
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Method Detail
-
ifUnguarded
public void ifUnguarded(@NotNull @NotNull java.lang.Runnable runnable)
-
ifUnguarded
public void ifUnguarded(boolean ifGuardedRunOnExit, @NotNull @NotNull java.lang.Runnable runnable)
-
ifUnguarded
public void ifUnguarded(@NotNull @NotNull java.lang.Runnable runnable, @Nullable @Nullable java.lang.Runnable runOnGuardExit)
-
guard
public void guard(@NotNull @NotNull java.lang.Runnable runnable)
-
unguarded
public boolean unguarded()
-
-