public class BatchProcessor
extends java.lang.Object
| Constructor and Description |
|---|
BatchProcessor(java.util.List<io.sphere.sdk.products.ProductDraft> productDrafts,
ProductSync productSync) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getKeysToCache() |
java.util.Set<io.sphere.sdk.products.ProductDraft> |
getValidDrafts() |
void |
validateBatch()
This method validates the batch of drafts, and only for valid drafts it adds the valid draft
to
validDrafts set, and adds the keys of all referenced products to
keysToCache. |
public BatchProcessor(@Nonnull
java.util.List<io.sphere.sdk.products.ProductDraft> productDrafts,
@Nonnull
ProductSync productSync)
public void validateBatch()
validDrafts set, and adds the keys of all referenced products to
keysToCache.
A valid product draft is one which satisfies the following conditions:
public java.util.Set<io.sphere.sdk.products.ProductDraft> getValidDrafts()
public java.util.Set<java.lang.String> getKeysToCache()