Class ThenAccumulateForStream<T,A>
java.lang.Object
org.reactfx.ObservableBase<Consumer<? super T>, T>
org.reactfx.EventStreamBase<T>
org.reactfx.ThenAccumulateForStream<T,A>
- All Implemented Interfaces:
AwaitingEventStream<T>, EventStream<T>, Observable<Consumer<? super T>>, ProperEventStream<T>, ProperObservable<Consumer<? super T>, T>
-
Nested Class Summary
Nested Classes -
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.value.ObservableBooleanValueIndicates whether there is a pending event that will be emitted by this stream in the (near) future. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Aprivate final EventStream<T> private javafx.beans.binding.BooleanBindingprivate final BiFunction<? super A, ? super T, ? extends A> private ThenAccumulateForStream.Stateprivate final Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidhandleEvent(T t) private voidprivate voidbooleanprotected final SubscriptionStarts observing this observable's input(s), if any.javafx.beans.value.ObservableBooleanValueIndicates whether there is a pending event that will be emitted by this stream in the (near) future.private voidMethods inherited from class ObservableBase
addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, newObserver, notifyObservers, notifyObservers, observe, removeObserver, toStringMethods inherited from interface EventStream
accumulate, accumulate, accumulate, accumulateBetween, accumulateBetween, accumulateUntilLater, accumulateUntilLater, accumulateUntilLater, accumulateUntilLater, accumulateWhen, accumulateWhen, accumulative, accumulative, cast, conditionOn, conditionOnShowing, distinct, emitBothOnEach, emitOn, emitOnEach, feedTo, feedTo, filter, filter, filterMap, filterMap, flatMap, forgetful, fork, guardedBy, hook, latestN, map, mapToCompletionStage, mapToTask, onRecurseAccumulate, onRecurseAccumulate, onRecurseQueue, onRecurseReduce, onRecurseRetainLatest, or, pausable, pauseWhen, pin, queueBetween, queueUntilLater, queueUntilLater, reduceBetween, reduceSuccessions, reduceSuccessions, reduceSuccessions, reduceSuccessions, reduceSuccessions, reduceSuccessions, reduceUntilLater, reduceUntilLater, reduceWhen, reducible, repeatOn, retainLatestBetween, retainLatestUntilLater, retainLatestUntilLater, retainLatestWhen, splitBy, subscribe, subscribeFor, subscribeForOne, successionEnds, successionEnds, supply, supply, supplyCompletionStage, supplyTask, suppressible, suppressWhen, suspenderOf, thenAccumulateFor, thenAccumulateFor, thenAccumulateFor, thenAccumulateFor, thenIgnoreFor, thenIgnoreFor, thenReduceFor, thenReduceFor, thenRetainLatestFor, thenRetainLatestFor, threadBridge, threadBridgeFromFx, threadBridgeToFx, toBinding, withDefaultEventMethods inherited from interface Observable
addObserver, observe, removeObserverMethods inherited from interface ProperEventStream
defaultNotificationAccumulator, emitMethods inherited from interface ProperObservable
defaultEquals, defaultHashCode, defaultToString, notifyObservers
-
Property Details
-
pending
public javafx.beans.value.ObservableBooleanValue pendingProperty- Specified by:
pendingPropertyin interfaceAwaitingEventStream<T>- Returns:
- the
pendingproperty - See Also:
-
-
Field Details
-
input
-
initial
-
reduction
-
deconstruction
-
timer
-
state
-
acc
-
pending
private javafx.beans.binding.BooleanBinding pending
-
-
Constructor Details
-
ThenAccumulateForStream
-
-
Method Details
-
pendingProperty
public javafx.beans.value.ObservableBooleanValue pendingProperty()Description copied from interface:AwaitingEventStreamIndicates whether there is a pending event that will be emitted by this stream in the (near) future. This may mean that an event has occurred that causes this stream to emit an event with some delay, e.g. waiting for a timer or completion of an asynchronous task.- Specified by:
pendingPropertyin interfaceAwaitingEventStream<T>- Returns:
- the
pendingproperty
-
isPending
public boolean isPending()- Specified by:
isPendingin interfaceAwaitingEventStream<T>
-
observeInputs
Description copied from class:ObservableBaseStarts observing this observable's input(s), if any. This method is called when the number of observers goes from 0 to 1. This method is called beforeObservableBase.newObserver(Object)is called for the first observer.- Specified by:
observeInputsin classObservableBase<Consumer<? super T>, T>- Returns:
- subscription used to stop observing inputs. The subscription is unsubscribed (i.e. input observation stops) when the number of observers goes down to 0.
-
handleEvent
-
handleTimeout
private void handleTimeout() -
setState
-
invalidatePending
private void invalidatePending()
-