limiter (Limiter)

Creates a chokepoint in a flow by limiting how many items will be processed. That is to say creates a new stream which has it's maximum number of items capped at the time it goes through the limiter. This maximum number is defined by an integer in the config for the limiter.

Class names

scala: code.model.flows.processors.utils.LimiterScannable
javascript: code_model_flows_processors_utils_LimiterScannable

Aliases

limit, chokepoint

Input type

scala.Nothing

Output type

scala.Nothing

Config

{"bindingHint":"Creates a chokepoint in the flow by limiting how many items will be processed. That is to say creates a new stream which has its maximum number of items capped at the time it goes through the limiter. This maximum number is defined by the limit field.","categories":[{"defaultCollapsed":true,"fields":["testData","testDataTransformFunc","assertionFunc"],"name":"Testing"}],"fieldName":"limiter","fields":[{"default":null,"fieldName":"limiter.name","hidden":false,"hideLabel":false,"name":"name","readonly":false,"renderStrategies":[],"type":"S","validators":[]},{"default":"limiter","fieldName":"limiter.classPath","hidden":false,"hideLabel":false,"name":"classPath","readonly":false,"renderStrategies":[],"type":"S","validators":[]},{"default":null,"fieldName":"limiter.testDataTransformFunc","hidden":false,"hideLabel":false,"name":"testDataTransformFunc","readonly":false,"renderStrategies":[],"type":"Js","validators":[]},{"default":"T1726099538932_F16393798639833XL3CC","fieldName":"limiter.id","hidden":false,"hideLabel":false,"name":"id","readonly":false,"renderStrategies":[],"type":"S","validators":[]},{"default":null,"fieldName":"limiter.testData","hidden":false,"hideLabel":false,"name":"testData","readonly":false,"renderStrategies":[],"type":"Jv","validators":[]},{"default":null,"fieldName":"limiter.assertionFunc","hidden":false,"hideLabel":false,"name":"assertionFunc","readonly":false,"renderStrategies":[],"type":"Js","validators":[]},{"bindingHint":"Sets the maximum number of items that will be processed.","default":null,"fieldName":"limiter.limit","hidden":false,"hideLabel":false,"label":"limit","name":"limit","readonly":false,"renderStrategies":[],"type":"I","validators":[]}],"hidden":false,"hideLabel":false,"label":"limiter","name":"limiter","readonly":false,"renderStrategies":[],"type":"O"}