@FunctionalInterface public interface CorrelationIdGenerator extends Supplier<String>
<projectKey> / <UUID> (/ customId)*| Modifier and Type | Method and Description |
|---|---|
String |
get()
Creates a new correlation id.
|
static CorrelationIdGenerator |
of(String projectKey)
Creates a new default correlation id generator for the given project key.
|
String get()
get in interface Supplier<String>HttpHeaders.X_CORRELATION_IDstatic CorrelationIdGenerator of(String projectKey)
projectKey - the project key SphereApiConfig.getProjectKey()