public interface AlarmPipeline
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AlarmPipeline.RetiredCallback |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(AlarmEvent alarmEvent,
TrackingContext trackingContext)
Evaluate an
alarmEvent. |
java.lang.String |
getName()
Get the name of this pipeline.
|
void |
retire(AlarmPipeline.RetiredCallback callback)
Retire this pipeline.
|
void |
start()
Start this pipeline.
|
void |
stop()
Stop this pipeline and everything running in it immediately.
|
void start()
evaluate(AlarmEvent, TrackingContext) happen.
Set MDC keys before coming here.
void stop()
Set MDC keys before coming here.
void retire(AlarmPipeline.RetiredCallback callback)
AlarmEvents currently evaluating
inside the pipeline should be allowed to finish. Upon completion of the last event, callback will be
notified.
Set MDC keys before coming here.
callback - The callback to notify once the pipeline is empty and has finished running.void evaluate(AlarmEvent alarmEvent, TrackingContext trackingContext)
alarmEvent.
Set MDC keys before coming here.
alarmEvent - The AlarmEvent to evaluate, not nulltrackingContext - The TrackingContext for alarmEvent. Update the context on transitions
and when the event is finished being evaluated, not null@Nonnull java.lang.String getName()