Interface StreamJobsCommandStep1.StreamJobsCommandStep2
- All Known Implementing Classes:
StreamJobsCommandImpl
- Enclosing interface:
StreamJobsCommandStep1
public static interface StreamJobsCommandStep1.StreamJobsCommandStep2
-
Method Summary
Modifier and TypeMethodDescriptionconsumer
(Consumer<ActivatedJob> consumer) Sets the consumer to receive activated jobs.
-
Method Details
-
consumer
Sets the consumer to receive activated jobs. Note that jobs can be activated on different threads, so the consumer should be thread-safe.- Parameters:
consumer
- the job consumer- Returns:
- the builder's next step
- Throws:
NullPointerException
- if the consumer is null
-