public class NotificationProcessor extends java.lang.Object implements NotificationListener, Startable
| Modifier and Type | Field and Description |
|---|---|
protected NotificationCenter |
notificationCenter |
protected Provision |
provision |
protected java.util.concurrent.ExecutorService |
threadPool |
| Constructor and Description |
|---|
NotificationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(Notification notification)
The onEvent is running on the same thread and using the same Resources as the
sender.
|
void |
processEvent(Notification notification)
It is the catch all processEvent method.
|
void |
run(java.lang.Runnable runnable) |
void |
start() |
@Inject(optional=true) protected java.util.concurrent.ExecutorService threadPool
@Inject protected NotificationCenter notificationCenter
@Inject protected Provision provision
public void onEvent(Notification notification)
onEvent in interface NotificationListenernotification - Notification instancepublic void processEvent(Notification notification)
notification - Notification instancepublic void run(java.lang.Runnable runnable)