|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.benow.web.notify.EventAccumulator
public class EventAccumulator
A handy little class to accumulate events on a per session basis.
| Constructor Summary | |
|---|---|
EventAccumulator(java.lang.Object... notifiers)
|
|
| Method Summary | |
|---|---|
static EventAccumulator |
createInSession()
Create an accumulator subscribing to all events reported on the MessageBus. |
static EventAccumulator |
createInSession(java.lang.Object... notifiers)
Create accumulator subscribing to all events from the given objects. |
boolean |
onEvent(java.lang.Object notifier,
org.benow.java.notify.event.Event event)
|
protected void |
shutdown()
|
java.util.List<org.benow.java.notify.event.Event> |
take()
|
static java.util.List<org.benow.java.notify.event.Event> |
takeEvents()
Gets the events accumulated by the accumulator associated with the current session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventAccumulator(java.lang.Object... notifiers)
| Method Detail |
|---|
protected void shutdown()
public boolean onEvent(java.lang.Object notifier,
org.benow.java.notify.event.Event event)
onEvent in interface org.benow.java.notify.Listenerpublic java.util.List<org.benow.java.notify.event.Event> take()
public static EventAccumulator createInSession()
public static EventAccumulator createInSession(java.lang.Object... notifiers)
notifiers -
public static java.util.List<org.benow.java.notify.event.Event> takeEvents()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||