2020-09-04 14:33:19 +02:00
|
|
|
package eu.dnetlib.broker.events.output;
|
|
|
|
|
2020-09-11 12:05:11 +02:00
|
|
|
import java.util.Map;
|
|
|
|
|
2020-09-04 14:33:19 +02:00
|
|
|
import eu.dnetlib.broker.common.elasticsearch.Event;
|
|
|
|
import eu.dnetlib.broker.common.subscriptions.NotificationMode;
|
|
|
|
import eu.dnetlib.broker.common.subscriptions.Subscription;
|
|
|
|
|
|
|
|
public interface NotificationDispatcher {
|
|
|
|
|
|
|
|
void sendNotification(Subscription subscription, Event... events);
|
|
|
|
|
|
|
|
void resetCount();
|
|
|
|
|
|
|
|
String getDispatcherName();
|
|
|
|
|
|
|
|
long count();
|
|
|
|
|
|
|
|
NotificationMode getMode();
|
2020-09-11 12:05:11 +02:00
|
|
|
|
|
|
|
void sendNotification(Subscription subscription, Map<String, Object> params);
|
|
|
|
|
|
|
|
long countErrors();
|
|
|
|
|
|
|
|
String lastError();
|
2020-09-04 14:33:19 +02:00
|
|
|
}
|