/** * Returns the current blocking handler or null if no custom handler * is set. * @return the current blocking handler or null if not specified * @since 2.0.5 - experimental */ @Experimental @Nullable public static BooleanSupplier getOnBeforeBlocking() { return onBeforeBlocking; }
/** * Returns the a hook consumer. * @return the hook consumer, may be null */ @Nullable public static Consumer<? super Throwable> getErrorHandler() { return errorHandler; }
PeriodicTask(long firstStartInNanoseconds, @NonNull Runnable decoratedRun, long firstNowNanoseconds, @NonNull SequentialDisposable sd, long periodInNanoseconds) { this.decoratedRun = decoratedRun; this.sd = sd; this.periodInNanoseconds = periodInNanoseconds; lastNowNanoseconds = firstNowNanoseconds; startInNanoseconds = firstStartInNanoseconds; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Callable<Scheduler>, ? extends Scheduler> getInitNewThreadSchedulerHandler() { return onInitNewThreadHandler; }
/** * Apply some calculation to the input value and return some other value. * @param t the input value * @return the output value * @throws Exception on error */ R apply(@NonNull T t) throws Exception; }
/** * Returns the current hook function. * @return the hook function, may be null */ @Nullable public static Function<? super Scheduler, ? extends Scheduler> getNewThreadSchedulerHandler() { return onNewThreadHandler; }
@Override @NonNull public String getMessage() { return message; }
/** * 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 time unit of the contained time. * @return the time unit of the contained time */ @NonNull public TimeUnit unit() { return unit; }
/** * 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);
/** * Signal a success value. * @param t the value, not null */ void onSuccess(@NonNull T t);
/** * 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; }
@Nullable @Override public Integer poll() throws Exception { return null; }