|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EventAggregator<Event,MergedEvent>
The EventAggregator interface is used by the CustomDispatchSource objects to handle
coalescing data before passing it to the application. Implementations of this class should
be stateless to remain thread-safe. You can also use one of several built in implementations:
EventAggregators.INTEGER_ADDEventAggregators.INTEGER_OREventAggregators.LONG_ADDEventAggregators.LONG_OR
| Method Summary | |
|---|---|
MergedEvent |
mergeEvent(MergedEvent previous,
Event event)
Merge the given event with the previous event values. |
MergedEvent |
mergeEvents(MergedEvent previous,
MergedEvent events)
Merge the given events with the previous event values. |
| Method Detail |
|---|
MergedEvent mergeEvent(MergedEvent previous,
Event event)
Merge the given event with the previous event values.
previous - may be nullevent - the value that should be merged
MergedEvent mergeEvents(MergedEvent previous,
MergedEvent events)
Merge the given events with the previous event values.
previous - the value of previous mergesevents - the value of more merges
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||