io.sphere.sdk.client.SphereConstantAccessTokenSupplierImpl Maven / Gradle / Ivy
package io.sphere.sdk.client;
import io.sphere.sdk.utils.CompletableFutureUtils;
import java.util.concurrent.CompletionStage;
final class SphereConstantAccessTokenSupplierImpl extends AutoCloseableService implements SphereAccessTokenSupplier {
private final CompletionStage token;
SphereConstantAccessTokenSupplierImpl(final String token) {
this.token = CompletableFutureUtils.successful(token);
}
@Override
public CompletionStage get() {
return token;
}
@Override
protected void internalClose() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy