public class NotificationProcessor extends java.lang.Object implements NotificationListener
| Constructor and Description |
|---|
NotificationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
async(java.lang.Runnable runnable) |
void |
catchEvent(Notification notification)
It is the catch all processEvent method.
|
Genesis |
getGenesis() |
NotificationCenter |
getNotificationCenter() |
java.lang.Class<? extends Notification>[] |
getNotificationTypes() |
Provision |
getProvision() |
java.util.concurrent.ExecutorService |
getThreadPool() |
void |
onEvent(Notification notification)
The onEvent is running on the same thread and using the same Resources as the
sender.
|
void |
setGenesis(Genesis genesis) |
void |
setNotificationCenter(NotificationCenter notificationCenter) |
void |
setProvision(Provision provision) |
void |
setThreadPool(java.util.concurrent.ExecutorService threadPool) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, wrap, wrappublic java.util.concurrent.ExecutorService getThreadPool()
@Inject(optional=true) public void setThreadPool(java.util.concurrent.ExecutorService threadPool)
public Genesis getGenesis()
public NotificationCenter getNotificationCenter()
@Inject public void setNotificationCenter(NotificationCenter notificationCenter)
public Provision getProvision()
public java.lang.Class<? extends Notification>[] getNotificationTypes()
getNotificationTypes in interface NotificationListenerpublic void onEvent(Notification notification)
onEvent in interface NotificationListenernotification - Notification instancepublic void catchEvent(Notification notification)
notification - Notification instancepublic void async(java.lang.Runnable runnable)