public class ComponentId extends Object
ComponentId consists of two parts: a globally unique context
(roughly - the domain where the ComponentId is valid)
and an id within the context.
Context is often a single coordinator but can be, for example,
a distributed transaction coordinator.| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE |
| Modifier and Type | Method and Description |
|---|---|
static ComponentId |
alloc(String label,
UUID coordinatorBase,
int index)
Given a base componentId, create a derived (different) one.
|
static ComponentId |
allocLocal()
Return a fresh ComponentId (not preserved across JVM runs)
|
static ComponentId |
create(UUID coordinatorBase,
byte[] bytes)
Create a ComponentId from the given bytes
|
boolean |
equals(Object obj) |
UUID |
getBaseId() |
byte[] |
getBytes() |
int |
hashCode() |
String |
label() |
String |
toString() |
public static final int SIZE
public byte[] getBytes()
public UUID getBaseId()
public String label()
public static ComponentId create(UUID coordinatorBase, byte[] bytes)
public static ComponentId alloc(String label, UUID coordinatorBase, int index)
public static ComponentId allocLocal()
Licensed under the Apache License, Version 2.0