Uses of Interface
org.reactfx.Subscription
Packages that use Subscription
-
Uses of Subscription in org.reactfx
Fields in org.reactfx declared as SubscriptionMethods in org.reactfx that return SubscriptionModifier and TypeMethodDescriptiondefault SubscriptionSubscription.and(Subscription other) Returns a new aggregate subscription whoseSubscription.unsubscribe()method callsunsubscribe()on both this subscription andothersubscription.Connectable.connectTo(EventStream<? extends T> source) Connects this connectable object tosourceevent stream.ConnectableEventSource.connectTo(EventStream<? extends T> input) static <T> SubscriptionSubscription.dynamic(javafx.collections.ObservableSet<T> elems, Function<? super T, ? extends Subscription> f) Dynamically subscribes to all elements of the given observable set.default SubscriptionEventSink.feedFrom(EventStream<? extends T> source) Starts pushing all events emitted bysourceto this event sink.default SubscriptionStarts setting all events emitted by this stream as the value of the given writable value.default SubscriptionStarts pushing all events emitted by this stream to the given event sink.static <T> SubscriptionSubscription.multi(Function<? super T, ? extends Subscription> f, Collection<T> elems) Subscribes to all elements of the given collection by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions.static <T> SubscriptionSubscription.multi(Function<? super T, ? extends Subscription> f, T... elems) Subscribes to all elements by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions.static SubscriptionSubscription.multi(Subscription... subs) Returns a new aggregate subscription whoseSubscription.unsubscribe()method callsunsubscribe()on all arguments to this method.default Subscriptionfinal Subscriptionfinal Subscriptionfinal SubscriptionReturns an empty Subscription (Subscription.EMPTY).protected final SubscriptionConnectableEventSource.observeInputs()protected final SubscriptionEventSource.observeInputs()protected abstract SubscriptionObservableBase.observeInputs()Starts observing this observable's input(s), if any.protected final SubscriptionSuspendableBase.observeInputs()default SubscriptionEventStream.pin()If this stream is a compound stream lazily subscribed to its inputs, that is, subscribed to inputs only when it itself has some subscribers,pinning this stream causes it to stay subscribed until the pinning is revoked by callingunsubscribe()on the returned subscription.default SubscriptionGet notified every time this event stream emits a value.default SubscriptionEventStream.subscribeFor(int n, Consumer<? super T> subscriber) Subscribes to this event stream for at mostnevents.default SubscriptionEventStream.subscribeForOne(Consumer<? super T> subscriber) Shorthand forsubscribeFor(1, subscriber).default SubscriptionSuspendable.suspendWhen(javafx.beans.value.ObservableValue<Boolean> condition) Methods in org.reactfx with parameters of type SubscriptionModifier and TypeMethodDescriptiondefault SubscriptionSubscription.and(Subscription other) Returns a new aggregate subscription whoseSubscription.unsubscribe()method callsunsubscribe()on both this subscription andothersubscription.static SubscriptionSubscription.multi(Subscription... subs) Returns a new aggregate subscription whoseSubscription.unsubscribe()method callsunsubscribe()on all arguments to this method.Method parameters in org.reactfx with type arguments of type SubscriptionModifier and TypeMethodDescriptionstatic <T> SubscriptionSubscription.dynamic(javafx.collections.ObservableSet<T> elems, Function<? super T, ? extends Subscription> f) Dynamically subscribes to all elements of the given observable set.static <T> SubscriptionSubscription.multi(Function<? super T, ? extends Subscription> f, Collection<T> elems) Subscribes to all elements of the given collection by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions.static <T> SubscriptionSubscription.multi(Function<? super T, ? extends Subscription> f, T... elems) Subscribes to all elements by the given function and returns an aggregate subscription that can be used to cancel all element subscriptions. -
Uses of Subscription in org.reactfx.collection
Methods in org.reactfx.collection that return SubscriptionModifier and TypeMethodDescriptiondefault SubscriptionLiveList.observeChanges(Consumer<? super ListChange<? extends E>> observer) static <E> SubscriptionLiveList.observeChanges(javafx.collections.ObservableList<E> list, Consumer<? super ListChange<? extends E>> observer) protected SubscriptionLiveArrayList.observeInputs()default SubscriptionLiveList.observeModifications(Consumer<? super ListModification<? extends E>> observer) static <E> SubscriptionLiveList.observeQuasiChanges(javafx.collections.ObservableList<? extends E> list, LiveList.QuasiChangeObserver<? super E> observer) default SubscriptionLiveList.observeQuasiChanges(LiveList.QuasiChangeObserver<? super E> observer) default SubscriptionLiveList.observeQuasiModifications(LiveList.QuasiModificationObserver<? super E> observer) default SubscriptionLiveList.pin() -
Uses of Subscription in org.reactfx.value
Methods in org.reactfx.value that return SubscriptionModifier and TypeMethodDescriptionprotected abstract SubscriptionValBase.connect()Implementation of this method should start observing inputs.default SubscriptionVal.observeChanges(javafx.beans.value.ChangeListener<? super T> listener) Adds a change listener and returns a Subscription that can be used to remove that listener.static <T> SubscriptionVal.observeChanges(javafx.beans.value.ObservableValue<? extends T> obs, javafx.beans.value.ChangeListener<? super T> listener) protected final SubscriptionValBase.observeInputs()default SubscriptionVal.observeInvalidations(Consumer<? super T> oldValueObserver) static SubscriptionVal.observeInvalidations(javafx.beans.value.ObservableValue<?> obs, javafx.beans.InvalidationListener listener) default SubscriptionVal.pin()