
com.commercetools.sync.services.ChannelService Maven / Gradle / Ivy
package com.commercetools.sync.services;
import com.commercetools.api.models.channel.Channel;
import io.sphere.sdk.client.SphereClient;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CompletionStage;
import javax.annotation.Nonnull;
public interface ChannelService {
/**
* Filters out the keys which are already cached and fetches only the not-cached channel keys from
* the CTP project defined in an injected {@link SphereClient} and stores a mapping for every
* channel to id in the cached map of keys -> ids and returns this cached map.
*
* @param channelKeys - a set of channel keys to fetch and cache the ids for
* @return {@link CompletionStage}<{@link Map}> in which the result of it's completion
* contains a map of requested tax channel -> ids
*/
@Nonnull
CompletionStage
© 2015 - 2025 Weber Informatics LLC | Privacy Policy