public abstract class AbstractNotificationDispatcher<T> extends Object implements NotificationDispatcher, org.springframework.beans.factory.BeanNameAware, Runnable
| Constructor and Description |
|---|
AbstractNotificationDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
long |
countErrors() |
String |
getDispatcherName() |
void |
init() |
String |
lastError() |
protected abstract void |
performAction(T message) |
protected abstract T |
prepareAction(Subscription subscription,
Event... events) |
protected abstract T |
prepareAction(Subscription subscription,
Map<String,Object> params) |
void |
resetCount() |
void |
run() |
void |
sendNotification(Subscription subscription,
Event... events) |
void |
sendNotification(Subscription subscription,
Map<String,Object> params) |
void |
setBeanName(String name) |
void |
setDispatcherName(String dispatcherName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMode@PostConstruct public void init()
public void sendNotification(Subscription subscription, Event... events)
sendNotification in interface NotificationDispatcherpublic void sendNotification(Subscription subscription, Map<String,Object> params)
sendNotification in interface NotificationDispatcherprotected abstract T prepareAction(Subscription subscription, Map<String,Object> params) throws Exception
Exceptionprotected abstract T prepareAction(Subscription subscription, Event... events) throws Exception
Exceptionpublic String getDispatcherName()
getDispatcherName in interface NotificationDispatcherpublic void setDispatcherName(String dispatcherName)
public long count()
count in interface NotificationDispatcherpublic long countErrors()
countErrors in interface NotificationDispatcherpublic String lastError()
lastError in interface NotificationDispatcherpublic void resetCount()
resetCount in interface NotificationDispatcherpublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareCopyright © 2025. All rights reserved.