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