public final class io.reactivex.internal.subscriptions.ScalarSubscription<T> extends java.util.concurrent.atomic.AtomicInteger implements io.reactivex.internal.fuseable.QueueSubscription<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.subscriptions.ScalarSubscription
super_class: java.util.concurrent.atomic.AtomicInteger
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -3830916580126663321
final T value;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
Signature: TT;
final org.reactivestreams.Subscriber<? super T> subscriber;
descriptor: Lorg/reactivestreams/Subscriber;
flags: (0x0010) ACC_FINAL
Signature: Lorg/reactivestreams/Subscriber<-TT;>;
static final int NO_REQUEST;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final int REQUESTED;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
static final int CANCELLED;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 2
public void <init>(org.reactivestreams.Subscriber<? super T>, );
descriptor: (Lorg/reactivestreams/Subscriber;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
1: aload 0
aload 1
putfield io.reactivex.internal.subscriptions.ScalarSubscription.subscriber:Lorg/reactivestreams/Subscriber;
2: aload 0
aload 2
putfield io.reactivex.internal.subscriptions.ScalarSubscription.value:Ljava/lang/Object;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
0 4 1 subscriber Lorg/reactivestreams/Subscriber<-TT;>;
0 4 2 value TT;
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;TT;)V
MethodParameters:
Name Flags
subscriber
value
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: lload 1
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.validate:(J)Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
iconst_1
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.compareAndSet:(II)Z
ifeq 7
3: aload 0
getfield io.reactivex.internal.subscriptions.ScalarSubscription.subscriber:Lorg/reactivestreams/Subscriber;
astore 3
start local 3 4: aload 3
aload 0
getfield io.reactivex.internal.subscriptions.ScalarSubscription.value:Ljava/lang/Object;
invokeinterface org.reactivestreams.Subscriber.onNext:(Ljava/lang/Object;)V
5: aload 0
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.get:()I
iconst_2
if_icmpeq 7
6: aload 3
invokeinterface org.reactivestreams.Subscriber.onComplete:()V
end local 3 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
0 8 1 n J
4 7 3 s Lorg/reactivestreams/Subscriber<-TT;>;
MethodParameters:
Name Flags
n
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_2
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.lazySet:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.get:()I
iconst_2
if_icmpne 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/internal/subscriptions/ScalarSubscription<TT;>;
public boolean offer();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "Should not be called!"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
0 1 1 e TT;
Signature: (TT;)Z
MethodParameters:
Name Flags
e
public boolean offer(T, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.UnsupportedOperationException
dup
ldc "Should not be called!"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
0 1 1 v1 TT;
0 1 2 v2 TT;
Signature: (TT;TT;)Z
MethodParameters:
Name Flags
v1
v2
public T poll();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.get:()I
ifne 3
1: aload 0
iconst_1
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.lazySet:(I)V
2: aload 0
getfield io.reactivex.internal.subscriptions.ScalarSubscription.value:Ljava/lang/Object;
areturn
3: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
Signature: ()TT;
RuntimeInvisibleAnnotations:
io.reactivex.annotations.Nullable()
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.get:()I
ifeq 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/internal/subscriptions/ScalarSubscription<TT;>;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual io.reactivex.internal.subscriptions.ScalarSubscription.lazySet:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
public int requestFusion(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
iand
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/subscriptions/ScalarSubscription<TT;>;
0 1 1 mode I
MethodParameters:
Name Flags
mode
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/atomic/AtomicInteger;Lio/reactivex/internal/fuseable/QueueSubscription<TT;>;
SourceFile: "ScalarSubscription.java"