public final class io.reactivex.internal.operators.observable.ObservablePublish<T> extends io.reactivex.observables.ConnectableObservable<T> implements io.reactivex.internal.fuseable.HasUpstreamObservableSource<T>, io.reactivex.internal.operators.observable.ObservablePublishClassic<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.observable.ObservablePublish
super_class: io.reactivex.observables.ConnectableObservable
{
final io.reactivex.ObservableSource<T> source;
descriptor: Lio/reactivex/ObservableSource;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/ObservableSource<TT;>;
final java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver<T>> current;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;>;
final io.reactivex.ObservableSource<T> onSubscribe;
descriptor: Lio/reactivex/ObservableSource;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/ObservableSource<TT;>;
public static <T> io.reactivex.observables.ConnectableObservable<T> create(io.reactivex.ObservableSource<T>);
descriptor: (Lio/reactivex/ObservableSource;)Lio/reactivex/observables/ConnectableObservable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
astore 1
start local 1 1: new io.reactivex.internal.operators.observable.ObservablePublish$PublishSource
dup
aload 1
invokespecial io.reactivex.internal.operators.observable.ObservablePublish$PublishSource.<init>:(Ljava/util/concurrent/atomic/AtomicReference;)V
astore 2
start local 2 2: new io.reactivex.internal.operators.observable.ObservablePublish
dup
aload 2
aload 0
aload 1
invokespecial io.reactivex.internal.operators.observable.ObservablePublish.<init>:(Lio/reactivex/ObservableSource;Lio/reactivex/ObservableSource;Ljava/util/concurrent/atomic/AtomicReference;)V
invokestatic io.reactivex.plugins.RxJavaPlugins.onAssembly:(Lio/reactivex/observables/ConnectableObservable;)Lio/reactivex/observables/ConnectableObservable;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 source Lio/reactivex/ObservableSource<TT;>;
1 3 1 curr Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;>;
2 3 2 onSubscribe Lio/reactivex/ObservableSource<TT;>;
Signature: <T:Ljava/lang/Object;>(Lio/reactivex/ObservableSource<TT;>;)Lio/reactivex/observables/ConnectableObservable<TT;>;
MethodParameters:
Name Flags
source
private void <init>(io.reactivex.ObservableSource<T>, io.reactivex.ObservableSource<T>, java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver<T>>);
descriptor: (Lio/reactivex/ObservableSource;Lio/reactivex/ObservableSource;Ljava/util/concurrent/atomic/AtomicReference;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial io.reactivex.observables.ConnectableObservable.<init>:()V
1: aload 0
aload 1
putfield io.reactivex.internal.operators.observable.ObservablePublish.onSubscribe:Lio/reactivex/ObservableSource;
2: aload 0
aload 2
putfield io.reactivex.internal.operators.observable.ObservablePublish.source:Lio/reactivex/ObservableSource;
3: aload 0
aload 3
putfield io.reactivex.internal.operators.observable.ObservablePublish.current:Ljava/util/concurrent/atomic/AtomicReference;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/internal/operators/observable/ObservablePublish<TT;>;
0 5 1 onSubscribe Lio/reactivex/ObservableSource<TT;>;
0 5 2 source Lio/reactivex/ObservableSource<TT;>;
0 5 3 current Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;>;
Signature: (Lio/reactivex/ObservableSource<TT;>;Lio/reactivex/ObservableSource<TT;>;Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;>;)V
MethodParameters:
Name Flags
onSubscribe
source
current final
public io.reactivex.ObservableSource<T> source();
descriptor: ()Lio/reactivex/ObservableSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish.source:Lio/reactivex/ObservableSource;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/operators/observable/ObservablePublish<TT;>;
Signature: ()Lio/reactivex/ObservableSource<TT;>;
public io.reactivex.ObservableSource<T> publishSource();
descriptor: ()Lio/reactivex/ObservableSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish.source:Lio/reactivex/ObservableSource;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/operators/observable/ObservablePublish<TT;>;
Signature: ()Lio/reactivex/ObservableSource<TT;>;
protected void subscribeActual(io.reactivex.Observer<? super T>);
descriptor: (Lio/reactivex/Observer;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish.onSubscribe:Lio/reactivex/ObservableSource;
aload 1
invokeinterface io.reactivex.ObservableSource.subscribe:(Lio/reactivex/Observer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/observable/ObservablePublish<TT;>;
0 2 1 observer Lio/reactivex/Observer<-TT;>;
Signature: (Lio/reactivex/Observer<-TT;>;)V
MethodParameters:
Name Flags
observer
public void connect(io.reactivex.functions.Consumer<? super io.reactivex.disposables.Disposable>);
descriptor: (Lio/reactivex/functions/Consumer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish.current:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
invokevirtual io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.isDisposed:()Z
ifeq 6
2: StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish io.reactivex.functions.Consumer top io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver
StackMap stack:
new io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver
dup
aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish.current:Ljava/util/concurrent/atomic/AtomicReference;
invokespecial io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.<init>:(Ljava/util/concurrent/atomic/AtomicReference;)V
astore 4
start local 4 3: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish.current:Ljava/util/concurrent/atomic/AtomicReference;
aload 3
aload 4
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 5
4: goto 0
5: StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver
StackMap stack:
aload 4
astore 3
end local 4 6: StackMap locals:
StackMap stack:
aload 3
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifne 7
aload 3
getfield io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver.shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 7
iconst_1
goto 8
StackMap locals:
StackMap stack:
7: iconst_0
StackMap locals:
StackMap stack: int
8: istore 2
start local 2 9: aload 1
aload 3
invokeinterface io.reactivex.functions.Consumer.accept:(Ljava/lang/Object;)V
10: goto 14
StackMap locals: io.reactivex.internal.operators.observable.ObservablePublish io.reactivex.functions.Consumer int io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver
StackMap stack: java.lang.Throwable
11: astore 4
start local 4 12: aload 4
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
13: aload 4
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 4 14: StackMap locals:
StackMap stack:
iload 2
ifeq 16
15: aload 0
getfield io.reactivex.internal.operators.observable.ObservablePublish.source:Lio/reactivex/ObservableSource;
aload 3
invokeinterface io.reactivex.ObservableSource.subscribe:(Lio/reactivex/Observer;)V
16: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/reactivex/internal/operators/observable/ObservablePublish<TT;>;
0 17 1 connection Lio/reactivex/functions/Consumer<-Lio/reactivex/disposables/Disposable;>;
9 17 2 doConnect Z
1 17 3 ps Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
3 6 4 u Lio/reactivex/internal/operators/observable/ObservablePublish$PublishObserver<TT;>;
12 14 4 ex Ljava/lang/Throwable;
Exception table:
from to target type
9 10 11 Class java.lang.Throwable
Signature: (Lio/reactivex/functions/Consumer<-Lio/reactivex/disposables/Disposable;>;)V
MethodParameters:
Name Flags
connection
}
Signature: <T:Ljava/lang/Object;>Lio/reactivex/observables/ConnectableObservable<TT;>;Lio/reactivex/internal/fuseable/HasUpstreamObservableSource<TT;>;Lio/reactivex/internal/operators/observable/ObservablePublishClassic<TT;>;
SourceFile: "ObservablePublish.java"
NestMembers:
io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver io.reactivex.internal.operators.observable.ObservablePublish$PublishSource
InnerClasses:
final InnerDisposable = io.reactivex.internal.operators.observable.ObservablePublish$InnerDisposable of io.reactivex.internal.operators.observable.ObservablePublish
final PublishObserver = io.reactivex.internal.operators.observable.ObservablePublish$PublishObserver of io.reactivex.internal.operators.observable.ObservablePublish
final PublishSource = io.reactivex.internal.operators.observable.ObservablePublish$PublishSource of io.reactivex.internal.operators.observable.ObservablePublish