public class EventProcessorController extends Object
EventProcessor
s contained in an application.Constructor and Description |
---|
EventProcessorController(EventProcessingConfiguration eventProcessingConfiguration)
Instantiate a controller to perform operations on the
EventProcessor instances contained in this
application. |
Modifier and Type | Method and Description |
---|---|
void |
onPause(Consumer<String> pauseHandler)
Add a
Consumer to be called when an EventProcessor is paused through the
EventProcessor.shutDown() method. |
void |
onStart(Consumer<String> startHandler)
Add a
Consumer to be called when an EventProcessor is started through the
EventProcessor.start() ()} method. |
public EventProcessorController(EventProcessingConfiguration eventProcessingConfiguration)
EventProcessor
instances contained in this
application. This controller should provide functionality to trigger all the APIs available on the EventProcessor
interface and it's implementations.eventProcessingConfiguration
- the EventProcessingConfiguration
from which the existing
EventProcessor
s will be retrievedpublic void onPause(Consumer<String> pauseHandler)
Consumer
to be called when an EventProcessor
is paused through the
EventProcessor.shutDown()
method.pauseHandler
- the Consumer
to be called when an EventProcessor
is pausedpublic void onStart(Consumer<String> startHandler)
Consumer
to be called when an EventProcessor
is started through the
EventProcessor.start()
()} method.startHandler
- the Consumer
to be called when an EventProcessor
is startedCopyright © 2010–2020. All rights reserved.