use of reactor.bus.selector.MatchAllSelector in project kylo by Teradata.
the class AggregatingAlertProvider method addListener.
/* (non-Javadoc)
* @see com.thinkbiganalytics.alerts.api.AlertProvider#addListener(com.thinkbiganalytics.alerts.api.AlertListener)
*/
@Override
public void addListener(AlertListener listener) {
// TODO matching all alerts for every listener. Allow filtering at this level, such as by type?
Registration<?, ?> reg = this.alertsBus.on(new MatchAllSelector(), new ListenerConsumer(listener));
this.listeners.put(listener, reg);
}
Aggregations