Class ShutdownSignalBarrier
java.lang.Object
org.agrona.concurrent.ShutdownSignalBarrier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CountDownLatchprivate static final ArrayList<CountDownLatch> private static final String[]Signals the barrier will be registered for. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawait()Await the reception of the shutdown signal.voidremove()Remove the barrier from the shutdown signals.voidsignal()Programmatically signal awaiting threads on the latch associated with this barrier.voidProgrammatically signal all awaiting threads.private static void
-
Field Details
-
SIGNAL_NAMES
Signals the barrier will be registered for. -
LATCHES
-
latch
-
-
Constructor Details
-
ShutdownSignalBarrier
public ShutdownSignalBarrier()Construct and register the barrier ready for use.
-
-
Method Details
-
signal
public void signal()Programmatically signal awaiting threads on the latch associated with this barrier. -
signalAll
public void signalAll()Programmatically signal all awaiting threads. -
remove
public void remove()Remove the barrier from the shutdown signals. -
await
public void await()Await the reception of the shutdown signal. -
signalAndClearAll
private static void signalAndClearAll()
-