io.sphere.sdk.client.TokensSupplier Maven / Gradle / Ivy
package io.sphere.sdk.client;
import io.sphere.sdk.http.HttpClient;
import java.util.concurrent.CompletionStage;
import java.util.function.Supplier;
public interface TokensSupplier extends AutoCloseable, Supplier> {
@Override
CompletionStage get();
@Override
void close();
static TokensSupplier of(final SphereAuthConfig config, final HttpClient httpClient, final boolean closeHttpClient) {
return TokensSupplierImpl.of(config, httpClient, closeHttpClient);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy