dnet-applications/apps/dhp-broker-application/src/main/java/eu/dnetlib/broker/events/output/NotificationDispatcher.java

27 lines
577 B
Java
Raw Normal View History

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
}