| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final Collection | |
| private final ReentrantReadWriteLock | |
| private volatile E |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public E | |
| public ReentrantReadWriteLock | |
| protected void | |
| public Future | Returns: ConditionListener, if current state doesn't match the condition and listener was registered,
null if current state matches the condition. In both cases listener will be notifiedCondition, the listener is interested in condition, CompletionHandler<E> that will be notified. This completionHandler)StateHolder implementation works with Runnable,
Callable, CountDownLatch, Object listenersRegister listener, which will be notified, when state will match the condition. |
| public Future | Returns: ConditionListener, if current state is not equal to required and listener was registered, null
if current state is equal to required. In both cases listener will be notifiedState, listener is interested in state, final CompletionHandler<E> that will be notified. This completionHandler)StateHolder implementation works with Runnable,
Callable, CountDownLatch, Object listenersRegister listener, which will be notified, when state will be equal to passed one. |
| public Future | Returns: ConditionListener, if current state is equal to required and listener was registered, null if
current state is not equal to required. In both cases listener will be notifiedState, listener is interested in state, final CompletionHandler<E> that will be notified. This completionHandler)StateHolder implementation works with Runnable,
Callable, CountDownLatch, Object listenersRegister listener, which will be notified, when state will become not equal to passed one. |
| public void |
| _logger | back to summary |
|---|---|
| private static final Logger _logger | |
| conditionListeners | back to summary |
|---|---|
| private final Collection<StateHolder. | |
| readWriteLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock readWriteLock | |
| state | back to summary |
|---|---|
| private volatile E state | |
| StateHolder | back to summary |
|---|---|
| public StateHolder() Constructs | |
| StateHolder | back to summary |
|---|---|
| public StateHolder(E initialState) Constructs | |
| getState | back to summary |
|---|---|
| public E getState() Gets current state Current StateHolder locking mode will be used
| |
| getStateLocker | back to summary |
|---|---|
| public ReentrantReadWriteLock getStateLocker() Gets Read/Write locker, which is used by this
| |
| notifyConditionListeners | back to summary |
|---|---|
| protected void notifyConditionListeners() | |
| notifyWhenConditionMatchState | back to summary |
|---|---|
| public Future Register listener, which will be notified, when state will match the condition. Once listener will be notified - it
will be removed from this
| |
| notifyWhenStateIsEqual | back to summary |
|---|---|
| public Future Register listener, which will be notified, when state will be equal to passed one. Once listener will be notified -
it will be removed from this
| |
| notifyWhenStateIsNotEqual | back to summary |
|---|---|
| public Future Register listener, which will be notified, when state will become not equal to passed one. Once listener will be
notified - it will be removed from this
| |
| setState | back to summary |
|---|---|
| public void setState(E state) Sets current state Current StateHolder locking mode will be used | |
| Modifier and Type | Field and Description |
|---|---|
| private final CompletionHandler | |
| private final Condition | |
| private final FutureImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CompletionHandler | |
| public Condition | |
| public FutureImpl |
| completionHandler | back to summary |
|---|---|
| private final CompletionHandler<E> completionHandler | |
| condition | back to summary |
|---|---|
| private final Condition condition | |
| future | back to summary |
|---|---|
| private final FutureImpl<E> future | |
| ConditionElement | back to summary |
|---|---|
| public ConditionElement(Condition condition, FutureImpl<E> future, CompletionHandler<E> completionHandler) | |
| getCompletionHandler | back to summary |
|---|---|
| public CompletionHandler | |
| getCondition | back to summary |
|---|---|
| public Condition getCondition() | |
| getFuture | back to summary |
|---|---|
| public FutureImpl | |