Package org.apache.drill.exec.rpc
Class ResettableBarrier
java.lang.Object
org.apache.drill.exec.rpc.ResettableBarrier
Modified implementation of countdown latch that allows a barrier to be unilaterally opened and closed. All others simply wait when it is closed. Is initialized in a closed state.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ResettableBarrier
public ResettableBarrier()
-
-
Method Details
-
await
- Throws:
InterruptedException
-
await
- Throws:
InterruptedException
-
openBarrier
public void openBarrier() -
closeBarrier
public void closeBarrier()
-