Is this for a custom processor? You shouldn’t have to do much to take advantage of this feature — just add the @SupportsBatching annotation to your processor. You can see how the value is retrieved and used in EventDrivenSchedulingAgent . As long as your processor extends AbstractProcessor (see the Developer Guide - AbstractProcessor API ) and has the annotation above, it will have the slider available in the configuration dialog and will support the run duration value for batching.
If the processor doesn’t have the annotation, it is assumed to be safe for concurrent execution but not batching. To explicitly disable this, you can use @TriggerSerially.
If you have more details on what you are trying to do with this processor, we may be able to help a little more. Good luck.