Class TestEnvironment.Latch
java.lang.Object
org.reactivestreams.tck.TestEnvironment.Latch
- Enclosing class:
TestEnvironment
Like a CountDownLatch, but resettable and with some convenience methods
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class(package private) static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertClosed(String openErrorMsg) voidassertOpen(String closedErrorMsg) voidclose()voidexpectClose(long timeoutMillis, String notClosedErrorMsg) voidexpectClose(String notClosedErrorMsg) booleanisClosed()voidreOpen()
-
Field Details
-
env
-
countDownLatch
-
-
Constructor Details
-
Latch
-
-
Method Details
-
reOpen
public void reOpen() -
isClosed
public boolean isClosed() -
close
public void close() -
assertClosed
-
assertOpen
-
expectClose
- Throws:
InterruptedException
-
expectClose
- Throws:
InterruptedException
-