|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Event
- MergedEvent
- public interface CustomDispatchSource<Event,MergedEvent>
A dispatch source that is used to coalesce multiple application generated events for later processing by the dispatch source event handler.
Method Summary | |
---|---|
MergedEvent |
getData()
Returns pending data for the dispatch source. |
void |
merge(Event value)
Merges data into a dispatch source and submits its event handler runnable to its target queue. |
Methods inherited from interface org.fusesource.hawtdispatch.DispatchSource |
---|
cancel, isCanceled, setCancelHandler, setCancelHandler, setEventHandler, setEventHandler |
Methods inherited from interface org.fusesource.hawtdispatch.DispatchObject |
---|
getTargetQueue, setTargetQueue |
Methods inherited from interface org.fusesource.hawtdispatch.Suspendable |
---|
isSuspended, resume, suspend |
Method Detail |
---|
MergedEvent getData()
Returns pending data for the dispatch source. Calling this method consumes the event and a subsequent call will return null.
This function is intended to be called from within the event handler runnable. The result of calling this function outside of the event handler runnable is undefined.
void merge(Event value)
Merges data into a dispatch source and submits its event handler runnable to its target queue.
value
- The value to coalesce with the pending data using the EventAggregator
that was specified when this dispach source was created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |