|
org.codehaus.gpars | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovyx.gpars.dataflow.impl.ResizeableCountDownLatch
public final class ResizeableCountDownLatch
CountDownLatch with the ability to change the number of waiting parties
| Nested Class Summary | |
|---|---|
private static class |
ResizeableCountDownLatch.Sync
|
| Field Summary | |
|---|---|
private ResizeableCountDownLatch.Sync |
sync
|
| Constructor Summary | |
ResizeableCountDownLatch()
|
|
| Method Summary | |
|---|---|
java.lang.Object
|
ResizeableCountDownLatch(int count)
|
boolean
|
attemptToCountDownAndAwait(long timeout)
|
void
|
await()
|
boolean
|
await(long timeout, java.util.concurrent.TimeUnit unit)
Attempts to atomically count down the latch and await release with a timeout. |
void
|
countDown()
|
void
|
decreaseCount()
|
long
|
getCount()
|
void
|
increaseCount()
|
boolean
|
isReleasedFlag()
|
java.lang.String
|
toString()
|
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Field Detail |
|---|
private final ResizeableCountDownLatch.Sync sync
| Constructor Detail |
|---|
ResizeableCountDownLatch()
| Method Detail |
|---|
public java.lang.Object ResizeableCountDownLatch(int count)
public boolean attemptToCountDownAndAwait(long timeout)
public void await()
public boolean await(long timeout, java.util.concurrent.TimeUnit unit)
timeout - The time in nanoseconds to await
public void countDown()
public void decreaseCount()
public long getCount()
public void increaseCount()
public boolean isReleasedFlag()
public java.lang.String toString()
Copyright © 2008–2013 Václav Pech. All Rights Reserved.