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

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

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