Class CollectionBasedCreationData.Builder
- java.lang.Object
-
- de.hybris.platform.processing.distributed.simple.data.CollectionBasedCreationData.Builder
-
- Enclosing class:
- CollectionBasedCreationData
public static class CollectionBasedCreationData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionBasedCreationDatabuild()CollectionBasedCreationData.BuilderwithBatchSize(int batchSize)Allows to provide custom batch size.CollectionBasedCreationData.BuilderwithElements(java.util.Collection<?> elements)Allows to addCollectionof elements to divide into batches.CollectionBasedCreationData.BuilderwithHandlerId(java.lang.String handlerId)Allows to provide Spring Bean ID of a SimpleDistributedProcessHandler.CollectionBasedCreationData.BuilderwithNodeGroup(java.lang.String nodeGroup)Allows to provide name of the NodeGroup which will execute process.CollectionBasedCreationData.BuilderwithNumOfRetries(int numOfRetries)Allows to provide custom number of retries for Batch.CollectionBasedCreationData.BuilderwithProcessId(java.lang.String processId)Allows to setup custom processId.CollectionBasedCreationData.BuilderwithProcessModelClass(java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)Allows to provide custom process model class.CollectionBasedCreationData.BuilderwithScriptCode(java.lang.String scriptCode)Allows to provide Script code which will act as aSimpleBatchProcessorimplementation.
-
-
-
Method Detail
-
withElements
public CollectionBasedCreationData.Builder withElements(java.util.Collection<?> elements)
Allows to addCollectionof elements to divide into batches.
-
withProcessId
public CollectionBasedCreationData.Builder withProcessId(java.lang.String processId)
Allows to setup custom processId. Note that processId must be unique in the whole system.
-
withHandlerId
public CollectionBasedCreationData.Builder withHandlerId(java.lang.String handlerId)
Allows to provide Spring Bean ID of a SimpleDistributedProcessHandler.
-
withScriptCode
public CollectionBasedCreationData.Builder withScriptCode(java.lang.String scriptCode)
Allows to provide Script code which will act as aSimpleBatchProcessorimplementation. When this option is chosenwithHandlerId(String)has no effect.
-
withNodeGroup
public CollectionBasedCreationData.Builder withNodeGroup(java.lang.String nodeGroup)
Allows to provide name of the NodeGroup which will execute process.
-
withBatchSize
public CollectionBasedCreationData.Builder withBatchSize(int batchSize)
Allows to provide custom batch size. If not used default 100 will be chosen.
-
withNumOfRetries
public CollectionBasedCreationData.Builder withNumOfRetries(int numOfRetries)
Allows to provide custom number of retries for Batch. If not used default 3 will be chosen.
-
withProcessModelClass
public CollectionBasedCreationData.Builder withProcessModelClass(java.lang.Class<? extends SimpleDistributedProcessModel> processModelClass)
Allows to provide custom process model class.
-
build
public CollectionBasedCreationData build()
-
-