public final class IsolateUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getIsolateAddress()
Gets the address of the current isolate or 0 if this not an isolate-aware runtime.
|
static long |
getIsolateID()
Gets an identifier for the current isolate or 0 if this not an isolate-aware runtime.
|
static String |
getIsolateID(boolean withAddress)
Gets a string identifying the current isolate.
|
public static long getIsolateAddress()
public static long getIsolateID()
2^64 - 1 isolates in the
process.public static String getIsolateID(boolean withAddress)
withAddress == true, then
String.format("%d@%x", getIsolateID(), getIsolateAddress()) is returned.
Otherwise, String.valueOf(getIsolateID()) is returned.