|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.testng.internal.thread.CountDownAdapter
public class CountDownAdapter
ICountDown adapter using the features in JDK 1.5, e.g.
CountDownLatch
.
Field Summary | |
---|---|
protected java.util.concurrent.CountDownLatch |
m_doneLatch
|
Constructor Summary | |
---|---|
CountDownAdapter(int count)
|
Method Summary | |
---|---|
void |
await()
|
boolean |
await(long timeout)
|
void |
countDown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.concurrent.CountDownLatch m_doneLatch
Constructor Detail |
---|
public CountDownAdapter(int count)
Method Detail |
---|
public void await() throws java.lang.InterruptedException
await
in interface ICountDown
java.lang.InterruptedException
public boolean await(long timeout) throws java.lang.InterruptedException
await
in interface ICountDown
java.lang.InterruptedException
public void countDown()
countDown
in interface ICountDown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |