@Singleton public class BlockingTerminationEvent extends java.lang.Object implements TerminationEvent
| Constructor and Description |
|---|
BlockingTerminationEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Block until the termination event is fired.
|
boolean |
isTerminated() |
void |
terminate()
Fire the termination event.
|
public void await()
throws java.lang.InterruptedException
TerminationEventawait in interface TerminationEventjava.lang.InterruptedExceptionpublic void terminate()
TerminationEventterminate in interface TerminationEventpublic boolean isTerminated()
isTerminated in interface TerminationEvent