public class CategorySync extends BaseSync<io.sphere.sdk.categories.CategoryDraft,CategorySyncStatistics,CategorySyncOptions>
statistics, syncOptions
Constructor and Description |
---|
CategorySync(CategorySyncOptions syncOptions)
Takes a
CategorySyncOptions instance to instantiate a new CategorySync instance
that could be used to sync category drafts with the given categories in the CTP project
specified in the injected CategorySyncOptions instance. |
Modifier and Type | Method and Description |
---|---|
protected java.util.concurrent.CompletionStage<CategorySyncStatistics> |
process(java.util.List<io.sphere.sdk.categories.CategoryDraft> categoryDrafts)
Given a list of resource (e.g.
|
protected java.util.concurrent.CompletionStage<CategorySyncStatistics> |
processBatch(java.util.List<io.sphere.sdk.categories.CategoryDraft> categoryDrafts) |
executeSupplierIfConcurrentModificationException, getStatistics, getSyncOptions, sync, syncBatches
public CategorySync(@Nonnull CategorySyncOptions syncOptions)
CategorySyncOptions
instance to instantiate a new CategorySync
instance
that could be used to sync category drafts with the given categories in the CTP project
specified in the injected CategorySyncOptions
instance.syncOptions
- the container of all the options of the sync process including the CTP
project client and/or configuration and other sync-specific options.protected java.util.concurrent.CompletionStage<CategorySyncStatistics> process(@Nonnull java.util.List<io.sphere.sdk.categories.CategoryDraft> categoryDrafts)
BaseSync
process
in class BaseSync<io.sphere.sdk.categories.CategoryDraft,CategorySyncStatistics,CategorySyncOptions>
categoryDrafts
- the list of new resources as drafts.CompletionStage
<U
> which contains as a result an
instance of U
which is a subclass of BaseSyncStatistics
representing the
statistics
instance attribute of this
BaseSync
.protected java.util.concurrent.CompletionStage<CategorySyncStatistics> processBatch(@Nonnull java.util.List<io.sphere.sdk.categories.CategoryDraft> categoryDrafts)
processBatch
in class BaseSync<io.sphere.sdk.categories.CategoryDraft,CategorySyncStatistics,CategorySyncOptions>