All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.client.TokensSupplier Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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