Class AggregateProcessor.WaitableInteger
java.lang.Object
java.util.concurrent.locks.AbstractOwnableSynchronizer
java.util.concurrent.locks.AbstractQueuedSynchronizer
org.apache.camel.processor.aggregate.AggregateProcessor.WaitableInteger
- All Implemented Interfaces:
Serializable
- Enclosing class:
AggregateProcessor
Synchronization class to avoid busy-loop when waiting for exchanges to be processed during shutdown.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer
AbstractQueuedSynchronizer.ConditionObject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawait()voidvoidvoidreset()protected inttryAcquireShared(int unused) protected booleantryReleaseShared(int releases) Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizer
acquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isHeldExclusively, isQueued, owns, release, releaseShared, setState, toString, tryAcquire, tryAcquireNanos, tryAcquireSharedNanos, tryReleaseMethods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizer
getExclusiveOwnerThread, setExclusiveOwnerThread
-
Constructor Details
-
WaitableInteger
protected WaitableInteger()
-
-
Method Details
-
await
- Throws:
InterruptedException
-
decrement
public void decrement() -
increment
public void increment() -
reset
public void reset()
-