public class ShutdownSignalBarrier
extends java.lang.Object
signal()
. Useful for shutting down a service.Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
SIGNAL_NAMES
Signals the barrier will be registered for.
|
Constructor and Description |
---|
ShutdownSignalBarrier()
Construct and register the barrier ready for use.
|
Modifier and Type | Method and Description |
---|---|
void |
await()
Await the reception of the shutdown signal.
|
void |
signal()
Programmatically signal awaiting threads.
|
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.