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:
Modifier and Type | Method and Description |
---|---|
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.
|
MergedEvent mergeEvent(MergedEvent previous, Event event)
Merge the given event with the previous event values.
previous
- may be nullevent
- the value that should be mergedMergedEvent mergeEvents(MergedEvent previous, MergedEvent events)
Merge the given events with the previous event values.
previous
- the value of previous mergesevents
- the value of more mergesCopyright © 2010–2017 FuseSource, Corp.. All rights reserved.