Event
- MergedEvent
- public interface CustomDispatchSource<Event,MergedEvent> extends DispatchSource
Modifier and Type | Method and Description |
---|---|
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.
|
cancel, isCanceled, setCancelHandler, setCancelHandler, setEventHandler, setEventHandler
getTargetQueue, setTargetQueue
isSuspended, resume, suspend
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.Copyright © 2010–2017 FuseSource, Corp.. All rights reserved.