public interface Connectable<T>
| Modifier and Type | Method and Description |
|---|---|
Subscription |
connectTo(EventStream<? extends T> source)
Connects this connectable object to
source event stream. |
Subscription connectTo(EventStream<? extends T> source)
source event stream.
Implementations of this method should subscribe to source
lazily, i.e. only subscribe to source when necessary, e.g.
when the connectable object itself is being observed (e.g. itself
has at least one subscriber).
A Connectable may be connected to multiple sources at
the same time.
source - event stream to (lazily) connect to.source.