public class StateBatchProcessor
extends java.lang.Object
| Constructor and Description |
|---|
StateBatchProcessor(java.util.List<io.sphere.sdk.states.StateDraft> stateDrafts,
StateSync stateSync) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getKeysToCache() |
java.util.Set<io.sphere.sdk.states.StateDraft> |
getValidDrafts() |
void |
validateBatch()
This method validates the batch of drafts, and only for valid drafts it adds the valid draft
to a
validDrafts set, the keys of their referenced states and
the keys of the missing parents to a keysToCache set. |
public StateBatchProcessor(@Nonnull
java.util.List<io.sphere.sdk.states.StateDraft> stateDrafts,
@Nonnull
StateSync stateSync)
public void validateBatch()
validDrafts set, the keys of their referenced states and
the keys of the missing parents to a keysToCache set.
A valid state draft is one which satisfies the following conditions:
public java.util.Set<io.sphere.sdk.states.StateDraft> getValidDrafts()
public java.util.Set<java.lang.String> getKeysToCache()