public abstract class io.reactivex.subscribers.ResourceSubscriber<T> implements io.reactivex.FlowableSubscriber<T>, io.reactivex.disposables.Disposable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.reactivex.subscribers.ResourceSubscriber
super_class: java.lang.Object
{
private final java.util.concurrent.atomic.AtomicReference<org.reactivestreams.Subscription> upstream;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/reactivestreams/Subscription;>;
private final io.reactivex.internal.disposables.ListCompositeDisposable resources;
descriptor: Lio/reactivex/internal/disposables/ListCompositeDisposable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicLong missedRequested;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield io.reactivex.subscribers.ResourceSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
2: aload 0
new io.reactivex.internal.disposables.ListCompositeDisposable
dup
invokespecial io.reactivex.internal.disposables.ListCompositeDisposable.<init>:()V
putfield io.reactivex.subscribers.ResourceSubscriber.resources:Lio/reactivex/internal/disposables/ListCompositeDisposable;
3: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield io.reactivex.subscribers.ResourceSubscriber.missedRequested:Ljava/util/concurrent/atomic/AtomicLong;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/subscribers/ResourceSubscriber<TT;>;
public final void add(io.reactivex.disposables.Disposable);
descriptor: (Lio/reactivex/disposables/Disposable;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "resource is null"
invokestatic io.reactivex.internal.functions.ObjectHelper.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.resources:Lio/reactivex/internal/disposables/ListCompositeDisposable;
aload 1
invokevirtual io.reactivex.internal.disposables.ListCompositeDisposable.add:(Lio/reactivex/disposables/Disposable;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/subscribers/ResourceSubscriber<TT;>;
0 3 1 resource Lio/reactivex/disposables/Disposable;
MethodParameters:
Name Flags
resource
public final void onSubscribe(org.reactivestreams.Subscription);
descriptor: (Lorg/reactivestreams/Subscription;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic io.reactivex.internal.util.EndConsumerHelper.setOnce:(Ljava/util/concurrent/atomic/AtomicReference;Lorg/reactivestreams/Subscription;Ljava/lang/Class;)Z
ifeq 5
1: aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.missedRequested:Ljava/util/concurrent/atomic/AtomicLong;
lconst_0
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndSet:(J)J
lstore 2
start local 2 2: lload 2
lconst_0
lcmp
ifeq 4
3: aload 1
lload 2
invokeinterface org.reactivestreams.Subscription.request:(J)V
4: StackMap locals: long
StackMap stack:
aload 0
invokevirtual io.reactivex.subscribers.ResourceSubscriber.onStart:()V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/subscribers/ResourceSubscriber<TT;>;
0 6 1 s Lorg/reactivestreams/Subscription;
2 5 2 r J
MethodParameters:
Name Flags
s
protected void onStart();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc 9223372036854775807
invokevirtual io.reactivex.subscribers.ResourceSubscriber.request:(J)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/subscribers/ResourceSubscriber<TT;>;
protected final void request(long);
descriptor: (J)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.missedRequested:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.deferredRequest:(Ljava/util/concurrent/atomic/AtomicReference;Ljava/util/concurrent/atomic/AtomicLong;J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/subscribers/ResourceSubscriber<TT;>;
0 2 1 n J
MethodParameters:
Name Flags
n
public final void dispose();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.cancel:(Ljava/util/concurrent/atomic/AtomicReference;)Z
ifeq 2
1: aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.resources:Lio/reactivex/internal/disposables/ListCompositeDisposable;
invokevirtual io.reactivex.internal.disposables.ListCompositeDisposable.dispose:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/subscribers/ResourceSubscriber<TT;>;
public final boolean isDisposed();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.subscribers.ResourceSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
getstatic io.reactivex.internal.subscriptions.SubscriptionHelper.CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/subscribers/ResourceSubscriber<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/reactivex/FlowableSubscriber<TT;>;Lio/reactivex/disposables/Disposable;
SourceFile: "ResourceSubscriber.java"