public class ProductSync extends BaseSync<io.sphere.sdk.products.ProductDraft,ProductSyncStatistics,ProductSyncOptions>
statistics, syncOptions
Constructor and Description |
---|
ProductSync(ProductSyncOptions productSyncOptions)
Takes a
ProductSyncOptions instance to instantiate a new ProductSync instance
that could be used to sync ProductProjection drafts with the given products in the CTP project
specified in the injected ProductSyncOptions instance. |
Modifier and Type | Method and Description |
---|---|
protected java.util.concurrent.CompletionStage<ProductSyncStatistics> |
process(java.util.List<io.sphere.sdk.products.ProductDraft> resourceDrafts)
Given a list of resource (e.g.
|
protected java.util.concurrent.CompletionStage<ProductSyncStatistics> |
processBatch(java.util.List<io.sphere.sdk.products.ProductDraft> batch) |
executeSupplierIfConcurrentModificationException, getStatistics, getSyncOptions, sync, syncBatches
public ProductSync(@Nonnull ProductSyncOptions productSyncOptions)
ProductSyncOptions
instance to instantiate a new ProductSync
instance
that could be used to sync ProductProjection drafts with the given products in the CTP project
specified in the injected ProductSyncOptions
instance.productSyncOptions
- 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<ProductSyncStatistics> process(@Nonnull java.util.List<io.sphere.sdk.products.ProductDraft> resourceDrafts)
BaseSync
process
in class BaseSync<io.sphere.sdk.products.ProductDraft,ProductSyncStatistics,ProductSyncOptions>
resourceDrafts
- 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<ProductSyncStatistics> processBatch(@Nonnull java.util.List<io.sphere.sdk.products.ProductDraft> batch)
processBatch
in class BaseSync<io.sphere.sdk.products.ProductDraft,ProductSyncStatistics,ProductSyncOptions>