- All Superinterfaces:
Flow.Subscriber<ProgressTracker.Progress>
- Enclosing class:
ProgressTracker
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A listener of
progress events
. Listener
extends from
Subscriber<Progress>
and provides sufficient default implementations for all methods but
onNext
, allowing it to be used as a functional interface in most cases. Override
default methods if you want to handle other subscriber notifications. Note that if progress is
enclosed
, onSubscribe
and onComplete
can still be
detected by onNext
as 0%
or 100%
progress events
respectively.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
default void
default void
onSubscribe
(Flow.Subscription subscription) Methods inherited from interface java.util.concurrent.Flow.Subscriber
onNext
-
Method Details
-
onSubscribe
- Specified by:
onSubscribe
in interfaceFlow.Subscriber<P extends ProgressTracker.Progress>
-
onError
- Specified by:
onError
in interfaceFlow.Subscriber<P extends ProgressTracker.Progress>
-
onComplete
default void onComplete()- Specified by:
onComplete
in interfaceFlow.Subscriber<P extends ProgressTracker.Progress>
-