com.commercetools.history.client.HistoryCorrelationIdProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commercetools-sdk-java-history Show documentation
Show all versions of commercetools-sdk-java-history Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package com.commercetools.history.client;
import java.util.UUID;
import io.vrap.rmf.base.client.http.CorrelationIdProvider;
public class HistoryCorrelationIdProvider implements CorrelationIdProvider {
private final String projectKey;
public HistoryCorrelationIdProvider(String projectKey) {
this.projectKey = projectKey;
}
@Override
public String getCorrelationId() {
return projectKey + "/" + UUID.randomUUID();
}
}