Package org.reactfx
Interface EventSink<T>
- All Known Subinterfaces:
ConnectableEventSink<T>
- All Known Implementing Classes:
ConnectableEventSource
,EventSource
public interface EventSink<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Subscription
feedFrom
(EventStream<? extends T> source) Starts pushing all events emitted bysource
to this event sink.void
-
Method Details
-
push
-
feedFrom
Starts pushing all events emitted bysource
to this event sink.An event sink can be fed from multiple sources at the same time.
sink.feedFrom(stream)
is equivalent tostream.feedTo(sink)
- Parameters:
source
- event stream whose events will be pushed to this event sink- Returns:
- subscription that can be used to stop delivering
source
's events to this event sink. - See Also:
-