|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.isolate.IsolateEvent.ExitReason
Provides information about how an isolate became
terminated
.
It indicates the "reason" the isolate died.
The last valid termination cause determines the reason code.
For example, if an isolate exits implicitly (IMPLICIT_EXIT
),
but a remote isolate issues a halt
during
the execution of shutdown hooks, the OTHER_HALT
code
will be provided as the reason.
IsolateEvent.getExitReason()
Field Summary | |
static IsolateEvent.ExitReason |
IMPLICIT_EXIT
The last non-daemon thread returned from main. |
static IsolateEvent.ExitReason |
OTHER_EXIT
Some other isolate invoked Isolate.exit
on the isolate. |
static IsolateEvent.ExitReason |
OTHER_HALT
Some other isolate invoked Isolate.halt
on the isolate. |
static IsolateEvent.ExitReason |
SELF_EXIT
The isolate invoked System.exit ,
Runtime.exit , or
Isolate.exit on itself. |
static IsolateEvent.ExitReason |
SELF_HALT
The isolate invoked Runtime.halt or
Isolate.halt on itself. |
static IsolateEvent.ExitReason |
UNCAUGHT_EXCEPTION
The last non-daemon thread exited due to an uncaught exception. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final IsolateEvent.ExitReason IMPLICIT_EXIT
public static final IsolateEvent.ExitReason UNCAUGHT_EXCEPTION
If a daemon thread dies with an uncaught exception,
that will not cause the containing isolate to die. Additionally,
only if the
public static final IsolateEvent.ExitReason SELF_EXIT
System.exit
,
Runtime.exit
, or
Isolate.exit
on itself.
public static final IsolateEvent.ExitReason SELF_HALT
Runtime.halt
or
Isolate.halt
on itself.
public static final IsolateEvent.ExitReason OTHER_EXIT
Isolate.exit
on the isolate.
public static final IsolateEvent.ExitReason OTHER_HALT
Isolate.halt
on the isolate.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |