Package org.agrona.concurrent
Class SigIntBarrier
- java.lang.Object
-
- org.agrona.concurrent.SigIntBarrier
-
public class SigIntBarrier extends java.lang.Object
One time barrier for blocking one or more threads until a SIGINT signal is received from the operating system or by programmatically callingsignal()
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.CountDownLatch
latch
-
Constructor Summary
Constructors Constructor Description SigIntBarrier()
Construct and register the barrier ready for use.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
await()
Await the reception of the SIGINT signal.void
signal()
Programmatically signal awaiting threads.
-