/** * Returns the a hook consumer. * @return the hook consumer, may be null */ @Nullable public static Consumer<? super Throwable> getErrorHandler() { return errorHandler; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Callable<Scheduler>, ? extends Scheduler> getInitNewThreadSchedulerHandler() { return onInitNewThreadHandler; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Scheduler, ? extends Scheduler> getNewThreadSchedulerHandler() { return onNewThreadHandler; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Scheduler, ? extends Scheduler> getSingleSchedulerHandler() { return onSingleHandler; }
/** * Returns the key that identifies the group of items emitted by this {@code GroupedObservable}. * * @return the key that the items emitted by this {@code GroupedObservable} were grouped by */ @Nullable public K getKey() { return key; } }
/** * Sets a Disposable on this emitter; any previous Disposable * or Cancellation will be disposed/cancelled. * @param d the disposable, null is allowed */ void setDisposable(@Nullable Disposable d);
/** * Sets a Cancellable on this emitter; any previous Disposable * or Cancellation will be disposed/cancelled. * @param c the cancellable resource, null is allowed */ void setCancellable(@Nullable Cancellable c);
/** * Sets a Disposable on this emitter; any previous Disposable * or Cancellation will be unsubscribed/cancelled. * @param s the disposable, null is allowed */ void setDisposable(@Nullable Disposable s);
/** * Returns the current hook function. * @return the hook function, may be null */ @SuppressWarnings("rawtypes") @Nullable public static Function<? super ConnectableFlowable, ? extends ConnectableFlowable> getOnConnectableFlowableAssembly() { return onConnectableFlowableAssembly; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable @SuppressWarnings("rawtypes") public static BiFunction<? super Flowable, ? super Subscriber, ? extends Subscriber> getOnFlowableSubscribe() { return onFlowableSubscribe; }
/** * Returns the current hook function. * <p>History: 2.0.6 - experimental * @return the hook function, may be null * @since 2.1 */ @SuppressWarnings("rawtypes") @Nullable public static Function<? super ParallelFlowable, ? extends ParallelFlowable> getOnParallelAssembly() { return onParallelAssembly; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable @SuppressWarnings("rawtypes") public static Function<? super Observable, ? extends Observable> getOnObservableAssembly() { return onObservableAssembly; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Scheduler, ? extends Scheduler> getComputationSchedulerHandler() { return onComputationHandler; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Callable<Scheduler>, ? extends Scheduler> getInitSingleSchedulerHandler() { return onInitSingleHandler; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Scheduler, ? extends Scheduler> getSingleSchedulerHandler() { return onSingleHandler; }
/** * Sets a Cancellable on this emitter; any previous Disposable * or Cancellation will be unsubscribed/cancelled. * @param c the cancellable resource, null is allowed */ void setCancellable(@Nullable Cancellable c);
/** * Sets a Disposable on this emitter; any previous Disposable * or Cancellation will be unsubscribed/cancelled. * @param s the disposable, null is allowed */ void setDisposable(@Nullable Disposable s);
@Nullable @Override public Object poll() throws Exception { return null; // always empty }
/** * Returns the error that caused the Subject to terminate or null if the Subject * hasn't terminated yet. * <p>The method is thread-safe. * @return the error that caused the Subject to terminate or null if the Subject * hasn't terminated yet */ @Nullable public abstract Throwable getThrowable();
/** * Sets a Disposable on this emitter; any previous Disposable * or Cancellation will be unsubscribed/cancelled. * @param d the disposable, null is allowed */ void setDisposable(@Nullable Disposable d);