public final class ProcessId extends Object
Modifier and Type | Field and Description |
---|---|
static ProcessId |
UNKNOWN_PROCESS_ID
The default process ID to use when the process ID is unknown.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getLeastSignificantBits()
Returns the least significant 64 bits of this process id's 128 bit value.
|
long |
getMostSignificantBits()
Returns the most significant 64 bits of this process id's 128 bit value.
|
int |
hashCode() |
static ProcessId |
newProcessId(long mostSigBits,
long leastSigBits)
Reads and decodes the
ProcessId from the provided scanner. |
static ProcessId |
newRandomProcessId()
Returns a randomly generated
ProcessId . |
String |
toString() |
public static final ProcessId UNKNOWN_PROCESS_ID
false
, even if tested against itself.public static ProcessId newRandomProcessId()
ProcessId
.ProcessId
public static ProcessId newProcessId(long mostSigBits, long leastSigBits)
ProcessId
from the provided scanner.mostSigBits
- The most significant bits of the ProcessId
leastSigBits
- The last significant bits of the ProcessId
public long getMostSignificantBits()
public long getLeastSignificantBits()
Copyright 2010-2022 ForgeRock AS.