Interface ProgressTracker.Listener
- 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 voiddefault voiddefault voidonSubscribe(Flow.Subscription subscription) Methods inherited from interface Flow.Subscriber
onNext
-
Method Details
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<P extends ProgressTracker.Progress>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<P extends ProgressTracker.Progress>
-
onComplete
default void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<P extends ProgressTracker.Progress>
-