public final class RunnerId extends Id implements Property
RunnerId represents a unique identifier for a specific runner execution.
The ID format is: <serviceId>@<hostname>#<uuid>, where:
serviceId identifies the logical service or module (e.g. "contract-service")hostname identifies the machine or container running the instanceuuid ensures uniqueness per executionThis format is optimized for:
| Modifier and Type | Method and Description |
|---|---|
static RunnerId |
fromString(java.lang.String value)
Creates a
RunnerId from a raw string. |
static RunnerId |
generate()
Generates a new
RunnerId using a randomly generated service identifier. |
static RunnerId |
generate(java.lang.String serviceIdentifier)
Generates a new
RunnerId using the provided service identifier. |
java.lang.String |
getKey() |
public static RunnerId generate()
RunnerId using a randomly generated service identifier.RunnerId for the current executionpublic static RunnerId generate(java.lang.String serviceIdentifier)
RunnerId using the provided service identifier.
If the service identifier or hostname is null or empty, a UUID will be used instead.
serviceIdentifier - the logical name of the service (can be null)RunnerId for the current executionpublic static RunnerId fromString(java.lang.String value)
RunnerId from a raw string.value - the raw identifier valueRunnerId wrapping the given value