`ClassTracing.ContextTransformer<T>`

java.lang.Object
com.google.adk.telemetry.Tracing.ContextTransformer<T>
Type Parameters:
T - The type of the stream.
All Implemented Interfaces:
io.reactivex.rxjava3.core.CompletableTransformer, io.reactivex.rxjava3.core.FlowableTransformer<T,T>, io.reactivex.rxjava3.core.MaybeTransformer<T,T>, io.reactivex.rxjava3.core.SingleTransformer<T,T>
Enclosing class:
Tracing

public static final class Tracing.ContextTransformer<T> extends Object implements io.reactivex.rxjava3.core.FlowableTransformer<T,T>, io.reactivex.rxjava3.core.SingleTransformer<T,T>, io.reactivex.rxjava3.core.MaybeTransformer<T,T>, io.reactivex.rxjava3.core.CompletableTransformer
一种变压器(transformer),能够在用户订阅该数据流(stream)的整个期间内,重新激活特定的上下文(context)。
  • 方法概述

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.CompletableSource
    apply(io.reactivex.rxjava3.core.Completable upstream)
    将上下文重新激活的功能应用于…… Completable stream.
    org.reactivestreams.Publisher<T>
    apply(io.reactivex.rxjava3.core.Flowable<T> upstream)
    将上下文重新激活的功能应用于…… Flowable stream.
    io.reactivex.rxjava3.core.MaybeSource<T>
    apply(io.reactivex.rxjava3.core.Maybe<T> upstream)
    将上下文重新激活的功能应用于…… Maybe stream.
    io.reactivex.rxjava3.core.SingleSource<T>
    apply(io.reactivex.rxjava3.core.Single<T> upstream)
    将上下文重新激活的功能应用于…… Single stream.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细信息(Method Details)

    • apply

      public org.reactivestreams.Publisher<T> apply(io.reactivex.rxjava3.core.Flowable<T> upstream)
      将上下文重新激活的功能应用于…… Flowable stream.
      Specified by:
      apply in interface io.reactivex.rxjava3.core.FlowableTransformer<T,T>
      Parameters:
      upstream - The upstream Flowable.
      Returns:
      A Publisher wrapped with context re-activation.
    • apply

      public io.reactivex.rxjava3.core.SingleSource<T> apply(io.reactivex.rxjava3.core.Single<T> upstream)
      将上下文重新激活的功能应用于…… Single stream.
      Specified by:
      apply in interface io.reactivex.rxjava3.core.SingleTransformer<T,T>
      Parameters:
      upstream - The upstream Single.
      Returns:
      A SingleSource wrapped with context re-activation.
    • apply

      public io.reactivex.rxjava3.core.MaybeSource<T> apply(io.reactivex.rxjava3.core.Maybe<T> upstream)
      将上下文重新激活的功能应用于…… Maybe stream.
      Specified by:
      apply in interface io.reactivex.rxjava3.core.MaybeTransformer<T,T>
      Parameters:
      upstream - The upstream Maybe.
      Returns:
      A MaybeSource wrapped with context re-activation.
    • apply

      public io.reactivex.rxjava3.core.CompletableSource apply(io.reactivex.rxjava3.core.Completable upstream)
      将上下文重新激活的功能应用于…… Completable stream.
      Specified by:
      apply in interface io.reactivex.rxjava3.core.CompletableTransformer
      Parameters:
      upstream - The upstream Completable.
      Returns:
      A CompletableSource wrapped with context re-activation.