Package eu.dnetlib.broker.events.output
Class MockDispatcher
java.lang.Object
eu.dnetlib.broker.events.output.AbstractNotificationDispatcher<String>
eu.dnetlib.broker.events.output.MockDispatcher
- All Implemented Interfaces:
NotificationDispatcher,Runnable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
@Component
@Profile("dev")
public class MockDispatcher
extends AbstractNotificationDispatcher<String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()protected voidperformAction(String message) protected StringprepareAction(Subscription subscription, Event... events) protected StringprepareAction(Subscription subscription, Map<String, Object> params) Methods inherited from class eu.dnetlib.broker.events.output.AbstractNotificationDispatcher
count, countErrors, getDispatcherName, init, lastError, resetCount, run, sendNotification, sendNotification, setBeanName, setDispatcherName
-
Constructor Details
-
MockDispatcher
public MockDispatcher()
-
-
Method Details
-
prepareAction
- Specified by:
prepareActionin classAbstractNotificationDispatcher<String>- Throws:
Exception
-
prepareAction
protected String prepareAction(Subscription subscription, Map<String, Object> params) throws Exception- Specified by:
prepareActionin classAbstractNotificationDispatcher<String>- Throws:
Exception
-
performAction
- Specified by:
performActionin classAbstractNotificationDispatcher<String>- Throws:
Exception
-
getMode
-