Top Description Methods
org.reactfx

public Interface SuspendableEventStream<T>

Additional top-level classes in compilation unit: SuspendableEventStreamBase, AccumulativeEventStream, PausableEventStream, AbstractReducibleEventStream, ReducibleEventStream, ForgetfulEventStream, SuppressibleEventStream.

extends EventStream<T>, Suspendable
Known Direct Implementers
org.reactfx.SuspendableEventStreamBase
Imports
java.util.Deque, .NoSuchElementException, java.util.function.BiFunction, .BinaryOperator, .Consumer, .Function, javafx.beans.value.ObservableValue, org.reactfx.util.AccumulatorSize, .NotificationAccumulator

An event stream whose emission of events can be suspended temporarily. What events, if any, are emitted when emission is resumed depends on the concrete implementation.

Method Summary

Modifier and TypeMethod and Description
public default EventStream<T>
suspendedWhen(ObservableValue<Boolean> condition)

Returns an event stream that is suspended when the given condition is true and emits normally when condition is false.

Inherited from org.reactfx.EventStream:
accumulateaccumulateaccumulateaccumulateBetweenaccumulateBetweenaccumulateUntilLateraccumulateUntilLateraccumulateUntilLateraccumulateUntilLateraccumulateWhenaccumulateWhenaccumulativeaccumulativecastconditionOnconditionOnShowingdistinctemitBothOnEachemitOnemitOnEachfeedTofeedTofilterfilterfilterMapfilterMapflatMapforgetfulforkguardedByhooklatestNmapmapToCompletionStagemapToTaskonRecurseAccumulateonRecurseAccumulateonRecurseQueueonRecurseReduceonRecurseRetainLatestorpausablepauseWhenpinqueueBetweenqueueUntilLaterqueueUntilLaterreduceBetweenreduceSuccessionsreduceSuccessionsreduceSuccessionsreduceSuccessionsreduceSuccessionsreduceSuccessionsreduceUntilLaterreduceUntilLaterreduceWhenreduciblerepeatOnretainLatestBetweenretainLatestUntilLaterretainLatestUntilLaterretainLatestWhensplitBysubscribesubscribeForsubscribeForOnesuccessionEndssuccessionEndssupplysupplysupplyCompletionStagesupplyTasksuppressiblesuppressWhensuspenderOfthenAccumulateForthenAccumulateForthenAccumulateForthenAccumulateForthenIgnoreForthenIgnoreForthenReduceForthenReduceForthenRetainLatestForthenRetainLatestForthreadBridgethreadBridgeFromFxthreadBridgeToFxtoBindingwithDefaultEvent
Inherited from org.reactfx.Suspendable:
combinesuspendsuspendWhensuspendWhilesuspendWhile

Method Detail

suspendedWhenback to summary
public default EventStream<T> suspendedWhen(ObservableValue<Boolean> condition)

Returns an event stream that is suspended when the given condition is true and emits normally when condition is false.