Package org.agrona.concurrent
Class SigIntBarrier
java.lang.Object
org.agrona.concurrent.SigIntBarrier
One time barrier for blocking one or more threads until a SIGINT signal is received from the operating system
or by programmatically calling
signal()
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
latch
-
-
Constructor Details
-
SigIntBarrier
public SigIntBarrier()Construct and register the barrier ready for use.
-
-
Method Details
-
signal
public void signal()Programmatically signal awaiting threads. -
await
public void await()Await the reception of the SIGINT signal.
-