public final class io.reactivex.internal.schedulers.SingleScheduler extends io.reactivex.Scheduler
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.schedulers.SingleScheduler
super_class: io.reactivex.Scheduler
{
final java.util.concurrent.ThreadFactory threadFactory;
descriptor: Ljava/util/concurrent/ThreadFactory;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.ScheduledExecutorService> executor;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Ljava/util/concurrent/ScheduledExecutorService;>;
private static final java.lang.String KEY_SINGLE_PRIORITY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "rx2.single-priority"
private static final java.lang.String THREAD_NAME_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "RxSingleScheduler"
static final io.reactivex.internal.schedulers.RxThreadFactory SINGLE_THREAD_FACTORY;
descriptor: Lio/reactivex/internal/schedulers/RxThreadFactory;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.util.concurrent.ScheduledExecutorService SHUTDOWN;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: iconst_0
invokestatic java.util.concurrent.Executors.newScheduledThreadPool:(I)Ljava/util/concurrent/ScheduledExecutorService;
putstatic io.reactivex.internal.schedulers.SingleScheduler.SHUTDOWN:Ljava/util/concurrent/ScheduledExecutorService;
1: getstatic io.reactivex.internal.schedulers.SingleScheduler.SHUTDOWN:Ljava/util/concurrent/ScheduledExecutorService;
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdown:()V
2: iconst_1
bipush 10
3: ldc "rx2.single-priority"
iconst_5
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
4: invokestatic java.lang.Math.min:(II)I
invokestatic java.lang.Math.max:(II)I
istore 0
start local 0 5: new io.reactivex.internal.schedulers.RxThreadFactory
dup
ldc "RxSingleScheduler"
iload 0
iconst_1
invokespecial io.reactivex.internal.schedulers.RxThreadFactory.<init>:(Ljava/lang/String;IZ)V
putstatic io.reactivex.internal.schedulers.SingleScheduler.SINGLE_THREAD_FACTORY:Lio/reactivex/internal/schedulers/RxThreadFactory;
end local 0 6: return
LocalVariableTable:
Start End Slot Name Signature
5 6 0 priority I
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.reactivex.internal.schedulers.SingleScheduler.SINGLE_THREAD_FACTORY:Lio/reactivex/internal/schedulers/RxThreadFactory;
invokespecial io.reactivex.internal.schedulers.SingleScheduler.<init>:(Ljava/util/concurrent/ThreadFactory;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/schedulers/SingleScheduler;
public void <init>(java.util.concurrent.ThreadFactory);
descriptor: (Ljava/util/concurrent/ThreadFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.reactivex.Scheduler.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
2: aload 0
aload 1
putfield io.reactivex.internal.schedulers.SingleScheduler.threadFactory:Ljava/util/concurrent/ThreadFactory;
3: aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
invokestatic io.reactivex.internal.schedulers.SingleScheduler.createExecutor:(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/internal/schedulers/SingleScheduler;
0 5 1 threadFactory Ljava/util/concurrent/ThreadFactory;
MethodParameters:
Name Flags
threadFactory
static java.util.concurrent.ScheduledExecutorService createExecutor(java.util.concurrent.ThreadFactory);
descriptor: (Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.reactivex.internal.schedulers.SchedulerPoolFactory.create:(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 threadFactory Ljava/util/concurrent/ThreadFactory;
MethodParameters:
Name Flags
threadFactory
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: StackMap locals: java.util.concurrent.ScheduledExecutorService
StackMap stack:
aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
astore 2
start local 2 2: aload 2
getstatic io.reactivex.internal.schedulers.SingleScheduler.SHUTDOWN:Ljava/util/concurrent/ScheduledExecutorService;
if_acmpeq 6
3: aload 1
ifnull 5
4: aload 1
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdown:()V
5: StackMap locals: java.util.concurrent.ScheduledExecutorService
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 1
ifnonnull 8
7: aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.threadFactory:Ljava/util/concurrent/ThreadFactory;
invokestatic io.reactivex.internal.schedulers.SingleScheduler.createExecutor:(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
astore 1
8: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 1
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/reactivex/internal/schedulers/SingleScheduler;
1 10 1 next Ljava/util/concurrent/ScheduledExecutorService;
2 10 2 current Ljava/util/concurrent/ScheduledExecutorService;
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
astore 1
start local 1 1: aload 1
getstatic io.reactivex.internal.schedulers.SingleScheduler.SHUTDOWN:Ljava/util/concurrent/ScheduledExecutorService;
if_acmpeq 5
2: aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
getstatic io.reactivex.internal.schedulers.SingleScheduler.SHUTDOWN:Ljava/util/concurrent/ScheduledExecutorService;
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
astore 1
3: aload 1
getstatic io.reactivex.internal.schedulers.SingleScheduler.SHUTDOWN:Ljava/util/concurrent/ScheduledExecutorService;
if_acmpeq 5
4: aload 1
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdownNow:()Ljava/util/List;
pop
5: StackMap locals: java.util.concurrent.ScheduledExecutorService
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/schedulers/SingleScheduler;
1 6 1 current Ljava/util/concurrent/ScheduledExecutorService;
public io.reactivex.Scheduler$Worker createWorker();
descriptor: ()Lio/reactivex/Scheduler$Worker;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.reactivex.internal.schedulers.SingleScheduler$ScheduledWorker
dup
aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
invokespecial io.reactivex.internal.schedulers.SingleScheduler$ScheduledWorker.<init>:(Ljava/util/concurrent/ScheduledExecutorService;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/schedulers/SingleScheduler;
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
public io.reactivex.disposables.Disposable scheduleDirect(java.lang.Runnable, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/reactivex/disposables/Disposable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 4 0: new io.reactivex.internal.schedulers.ScheduledDirectTask
dup
aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onSchedule:(Ljava/lang/Runnable;)Ljava/lang/Runnable;
invokespecial io.reactivex.internal.schedulers.ScheduledDirectTask.<init>:(Ljava/lang/Runnable;)V
astore 5
start local 5 1: lload 2
lconst_0
lcmp
ifgt 4
2: aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
aload 5
invokeinterface java.util.concurrent.ScheduledExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
astore 6
start local 6 3: goto 5
end local 6 4: StackMap locals: io.reactivex.internal.schedulers.ScheduledDirectTask
StackMap stack:
aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
aload 5
lload 2
aload 4
invokeinterface java.util.concurrent.ScheduledExecutorService.schedule:(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
astore 6
start local 6 5: StackMap locals: java.util.concurrent.Future
StackMap stack:
aload 5
aload 6
invokevirtual io.reactivex.internal.schedulers.ScheduledDirectTask.setFuture:(Ljava/util/concurrent/Future;)V
6: aload 5
7: areturn
end local 6 8: StackMap locals: io.reactivex.internal.schedulers.SingleScheduler java.lang.Runnable long java.util.concurrent.TimeUnit io.reactivex.internal.schedulers.ScheduledDirectTask
StackMap stack: java.util.concurrent.RejectedExecutionException
astore 6
start local 6 9: aload 6
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
10: getstatic io.reactivex.internal.disposables.EmptyDisposable.INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
areturn
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/reactivex/internal/schedulers/SingleScheduler;
0 11 1 run Ljava/lang/Runnable;
0 11 2 delay J
0 11 4 unit Ljava/util/concurrent/TimeUnit;
1 11 5 task Lio/reactivex/internal/schedulers/ScheduledDirectTask;
3 4 6 f Ljava/util/concurrent/Future<*>;
5 8 6 f Ljava/util/concurrent/Future<*>;
9 11 6 ex Ljava/util/concurrent/RejectedExecutionException;
Exception table:
from to target type
1 7 8 Class java.util.concurrent.RejectedExecutionException
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
RuntimeInvisibleParameterAnnotations:
0:
io.reactivex.annotations.NonNull()
1:
2:
MethodParameters:
Name Flags
run
delay
unit
public io.reactivex.disposables.Disposable schedulePeriodicallyDirect(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Lio/reactivex/disposables/Disposable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 6 0: aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onSchedule:(Ljava/lang/Runnable;)Ljava/lang/Runnable;
astore 7
start local 7 1: lload 4
lconst_0
lcmp
ifgt 14
2: aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
astore 8
start local 8 3: new io.reactivex.internal.schedulers.InstantPeriodicTask
dup
aload 7
aload 8
invokespecial io.reactivex.internal.schedulers.InstantPeriodicTask.<init>:(Ljava/lang/Runnable;Ljava/util/concurrent/ExecutorService;)V
astore 9
start local 9 4: lload 2
lconst_0
lcmp
ifgt 7
5: aload 8
aload 9
invokeinterface java.util.concurrent.ScheduledExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
astore 10
start local 10 6: goto 8
end local 10 7: StackMap locals: java.lang.Runnable java.util.concurrent.ScheduledExecutorService io.reactivex.internal.schedulers.InstantPeriodicTask
StackMap stack:
aload 8
aload 9
lload 2
aload 6
invokeinterface java.util.concurrent.ScheduledExecutorService.schedule:(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
astore 10
start local 10 8: StackMap locals: java.util.concurrent.Future
StackMap stack:
aload 9
aload 10
invokevirtual io.reactivex.internal.schedulers.InstantPeriodicTask.setFirst:(Ljava/util/concurrent/Future;)V
9: goto 13
end local 10 StackMap locals: io.reactivex.internal.schedulers.SingleScheduler java.lang.Runnable long long java.util.concurrent.TimeUnit java.lang.Runnable java.util.concurrent.ScheduledExecutorService io.reactivex.internal.schedulers.InstantPeriodicTask
StackMap stack: java.util.concurrent.RejectedExecutionException
10: astore 11
start local 11 11: aload 11
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
12: getstatic io.reactivex.internal.disposables.EmptyDisposable.INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
areturn
end local 11 start local 10 13: StackMap locals: java.util.concurrent.Future
StackMap stack:
aload 9
areturn
end local 10 end local 9 end local 8 14: StackMap locals:
StackMap stack:
new io.reactivex.internal.schedulers.ScheduledDirectPeriodicTask
dup
aload 7
invokespecial io.reactivex.internal.schedulers.ScheduledDirectPeriodicTask.<init>:(Ljava/lang/Runnable;)V
astore 8
start local 8 15: aload 0
getfield io.reactivex.internal.schedulers.SingleScheduler.executor:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
aload 8
lload 2
lload 4
aload 6
invokeinterface java.util.concurrent.ScheduledExecutorService.scheduleAtFixedRate:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
astore 9
start local 9 16: aload 8
aload 9
invokevirtual io.reactivex.internal.schedulers.ScheduledDirectPeriodicTask.setFuture:(Ljava/util/concurrent/Future;)V
17: aload 8
18: areturn
end local 9 19: StackMap locals: io.reactivex.internal.schedulers.SingleScheduler java.lang.Runnable long long java.util.concurrent.TimeUnit java.lang.Runnable io.reactivex.internal.schedulers.ScheduledDirectPeriodicTask
StackMap stack: java.util.concurrent.RejectedExecutionException
astore 9
start local 9 20: aload 9
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
21: getstatic io.reactivex.internal.disposables.EmptyDisposable.INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
areturn
end local 9 end local 8 end local 7 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lio/reactivex/internal/schedulers/SingleScheduler;
0 22 1 run Ljava/lang/Runnable;
0 22 2 initialDelay J
0 22 4 period J
0 22 6 unit Ljava/util/concurrent/TimeUnit;
1 22 7 decoratedRun Ljava/lang/Runnable;
3 14 8 exec Ljava/util/concurrent/ScheduledExecutorService;
4 14 9 periodicWrapper Lio/reactivex/internal/schedulers/InstantPeriodicTask;
6 7 10 f Ljava/util/concurrent/Future<*>;
8 10 10 f Ljava/util/concurrent/Future<*>;
13 14 10 f Ljava/util/concurrent/Future<*>;
11 13 11 ex Ljava/util/concurrent/RejectedExecutionException;
15 22 8 task Lio/reactivex/internal/schedulers/ScheduledDirectPeriodicTask;
16 19 9 f Ljava/util/concurrent/Future<*>;
20 22 9 ex Ljava/util/concurrent/RejectedExecutionException;
Exception table:
from to target type
4 9 10 Class java.util.concurrent.RejectedExecutionException
15 18 19 Class java.util.concurrent.RejectedExecutionException
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
RuntimeInvisibleParameterAnnotations:
0:
io.reactivex.annotations.NonNull()
1:
2:
3:
MethodParameters:
Name Flags
run
initialDelay
period
unit
}
SourceFile: "SingleScheduler.java"
NestMembers:
io.reactivex.internal.schedulers.SingleScheduler$ScheduledWorker
InnerClasses:
public abstract Worker = io.reactivex.Scheduler$Worker of io.reactivex.Scheduler
final ScheduledWorker = io.reactivex.internal.schedulers.SingleScheduler$ScheduledWorker of io.reactivex.internal.schedulers.SingleScheduler