Class CountdownCloseable
- java.lang.Object
-
- org.apache.maven.surefire.extensions.util.CountdownCloseable
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class CountdownCloseable extends java.lang.Object implements java.io.CloseableDecrementscountdownand callscloseableif reached zero.
-
-
Constructor Summary
Constructors Constructor Description CountdownCloseable(java.io.Closeable closeable, int countdown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitClosed()Waiting for one Thread inCommandlineExecutor.awaitExit().voidclose()
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
awaitClosed
public void awaitClosed() throws java.lang.InterruptedExceptionWaiting for one Thread inCommandlineExecutor.awaitExit().- Throws:
java.lang.InterruptedException- seeObject.wait()
-
-