Class MaybePeek<T>

Type Parameters:
T - the value type
All Implemented Interfaces:
MaybeSource<T>, HasUpstreamMaybeSource<T>

public final class MaybePeek<T> extends AbstractMaybeWithUpstream<T,T>
Peeks into the lifecycle of a Maybe and MaybeObserver.
  • Field Details

    • onSubscribeCall

      final Consumer<? super Disposable> onSubscribeCall
    • onSuccessCall

      final Consumer<? super T> onSuccessCall
    • onErrorCall

      final Consumer<? super Throwable> onErrorCall
    • onCompleteCall

      final Action onCompleteCall
    • onAfterTerminate

      final Action onAfterTerminate
    • onDisposeCall

      final Action onDisposeCall
  • Constructor Details

  • Method Details

    • subscribeActual

      protected void subscribeActual(MaybeObserver<? super T> observer)
      Description copied from class: Maybe
      Implement this method in subclasses to handle the incoming MaybeObservers.

      There is no need to call any of the plugin hooks on the current Maybe instance or the MaybeObserver; all hooks and basic safeguards have been applied by Maybe.subscribe(MaybeObserver) before this method gets called.

      Specified by:
      subscribeActual in class Maybe<T>
      Parameters:
      observer - the MaybeObserver to handle, not null