public class PoisonPill extends java.lang.Object implements ControlMessage
Modifier and Type | Field and Description |
---|---|
private boolean |
immediate |
private static PoisonPill |
immediateInstance |
private static PoisonPill |
ourInstance |
Constructor and Description |
---|
PoisonPill() |
PoisonPill(boolean immediate) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
countDown() |
static PoisonPill |
getImmediateInstance()
Retrieves an immediate poison pill instance
|
static PoisonPill |
getInstance()
Retrieves a non-immediate poison pill instance
|
boolean |
isImmediate() |
private static final PoisonPill ourInstance
private static final PoisonPill immediateInstance
private final boolean immediate
public static PoisonPill getInstance()
public static PoisonPill getImmediateInstance()
public final boolean isImmediate()
void countDown()