public final class StopCause extends Object
StopContext.setStopCause(StopCause)
Modifier and Type | Field and Description |
---|---|
static StopCause |
FAILURE
Specifies the 'Failure' stop cause.
|
static StopCause |
KILL
Specifies the 'Kill' stop cause.
|
static StopCause |
NORMAL
Specifies the 'Normal' stop cause.
|
static StopCause |
UNKNOW
Specifies the 'undefined' stop cause.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFailure()
Returns
true if the stop cause is 'Failure'. |
boolean |
isKill()
Returns
true if the stop cause is 'Kill'. |
boolean |
isNormal()
Returns
true if the stop cause is 'Normal'. |
boolean |
isUnknow()
Returns
true if the stop cause is 'undefined'. |
public static final StopCause UNKNOW
public static final StopCause NORMAL
public static final StopCause FAILURE
public static final StopCause KILL
public boolean isUnknow()
true
if the stop cause is 'undefined'.public boolean isNormal()
true
if the stop cause is 'Normal'.public boolean isFailure()
true
if the stop cause is 'Failure'.public boolean isKill()
true
if the stop cause is 'Kill'.