Class CollectionBasedCreationData
- java.lang.Object
-
- de.hybris.platform.processing.distributed.simple.data.SimpleAbstractDistributedProcessCreationData
-
- de.hybris.platform.processing.distributed.simple.data.CollectionBasedCreationData
-
- All Implemented Interfaces:
ProcessCreationData
public class CollectionBasedCreationData extends SimpleAbstractDistributedProcessCreationData
Process creation data which is based on Collection. No further transformation is applied to the Collection elements. Collection is divided into batches of the provided size. Keep in mind that elements must be serializable since they are stored in a BLOB field of a Batch later on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectionBasedCreationData.Builder
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<?>elements-
Fields inherited from class de.hybris.platform.processing.distributed.simple.data.SimpleAbstractDistributedProcessCreationData
batchSize, DEFAULT_BATCH_SIZE, DEFAULT_NUM_RETRIES, handlerId, nodeGroup, numOfRetries, processId, processModelClass, scriptCode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCollectionBasedCreationData(java.lang.String handlerId, java.lang.String processId, java.lang.String scriptCode, java.lang.String nodeGroup, java.lang.Integer batchSize, java.lang.Integer numOfRetries, java.util.Collection<?> elements, java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectionBasedCreationData.Builderbuilder()java.util.stream.Stream<? extends SimpleBatchCreationData>initialBatches()Responsible for returning stream for creating initial batches used by distributed process.-
Methods inherited from class de.hybris.platform.processing.distributed.simple.data.SimpleAbstractDistributedProcessCreationData
getBatchSize, getHandlerBeanId, getNodeGroup, getNumOfRetries, getProcessId, getProcessModelClass, getScriptCode
-
-
-
-
Constructor Detail
-
CollectionBasedCreationData
protected CollectionBasedCreationData(java.lang.String handlerId, java.lang.String processId, java.lang.String scriptCode, java.lang.String nodeGroup, java.lang.Integer batchSize, java.lang.Integer numOfRetries, java.util.Collection<?> elements, java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)
-
-
Method Detail
-
initialBatches
public java.util.stream.Stream<? extends SimpleBatchCreationData> initialBatches()
Description copied from interface:ProcessCreationDataResponsible for returning stream for creating initial batches used by distributed process.- Specified by:
initialBatchesin interfaceProcessCreationData- Specified by:
initialBatchesin classSimpleAbstractDistributedProcessCreationData- Returns:
- Stream of batch data
-
builder
public static CollectionBasedCreationData.Builder builder()
-
-