final class reactor.core.scheduler.SingleScheduler implements reactor.core.scheduler.Scheduler, java.util.function.Supplier<java.util.concurrent.ScheduledExecutorService>, reactor.core.Scannable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: reactor.core.scheduler.SingleScheduler
super_class: java.lang.Object
{
static final java.util.concurrent.atomic.AtomicLong COUNTER;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.util.concurrent.ThreadFactory factory;
descriptor: Ljava/util/concurrent/ThreadFactory;
flags: (0x0010) ACC_FINAL
volatile java.util.concurrent.ScheduledExecutorService executor;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0040) ACC_VOLATILE
static final java.util.concurrent.atomic.AtomicReferenceFieldUpdater<reactor.core.scheduler.SingleScheduler, java.util.concurrent.ScheduledExecutorService> EXECUTORS;
descriptor: Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater<Lreactor/core/scheduler/SingleScheduler;Ljava/util/concurrent/ScheduledExecutorService;>;
static final java.util.concurrent.ScheduledExecutorService TERMINATED;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putstatic reactor.core.scheduler.SingleScheduler.COUNTER:Ljava/util/concurrent/atomic/AtomicLong;
1: ldc Lreactor/core/scheduler/SingleScheduler;
2: ldc Ljava/util/concurrent/ScheduledExecutorService;
3: ldc "executor"
4: invokestatic java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
5: putstatic reactor.core.scheduler.SingleScheduler.EXECUTORS:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
6: invokestatic java.util.concurrent.Executors.newSingleThreadScheduledExecutor:()Ljava/util/concurrent/ScheduledExecutorService;
putstatic reactor.core.scheduler.SingleScheduler.TERMINATED:Ljava/util/concurrent/ScheduledExecutorService;
7: getstatic reactor.core.scheduler.SingleScheduler.TERMINATED:Ljava/util/concurrent/ScheduledExecutorService;
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdownNow:()Ljava/util/List;
pop
8: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.util.concurrent.ThreadFactory);
descriptor: (Ljava/util/concurrent/ThreadFactory;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield reactor.core.scheduler.SingleScheduler.factory:Ljava/util/concurrent/ThreadFactory;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lreactor/core/scheduler/SingleScheduler;
0 3 1 factory Ljava/util/concurrent/ThreadFactory;
MethodParameters:
Name Flags
factory
public java.util.concurrent.ScheduledExecutorService get();
descriptor: ()Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_1
aload 0
getfield reactor.core.scheduler.SingleScheduler.factory:Ljava/util/concurrent/ThreadFactory;
invokestatic java.util.concurrent.Executors.newScheduledThreadPool:(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
checkcast java.util.concurrent.ScheduledThreadPoolExecutor
astore 1
start local 1 1: aload 1
iconst_1
invokevirtual java.util.concurrent.ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy:(Z)V
2: aload 1
iconst_1
invokevirtual java.util.concurrent.ScheduledThreadPoolExecutor.setMaximumPoolSize:(I)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lreactor/core/scheduler/SingleScheduler;
1 4 1 e Ljava/util/concurrent/ScheduledThreadPoolExecutor;
public boolean isDisposed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
getstatic reactor.core.scheduler.SingleScheduler.TERMINATED:Ljava/util/concurrent/ScheduledExecutorService;
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 Lreactor/core/scheduler/SingleScheduler;
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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 reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
astore 2
start local 2 2: aload 2
getstatic reactor.core.scheduler.SingleScheduler.TERMINATED:Ljava/util/concurrent/ScheduledExecutorService;
if_acmpeq 6
aload 2
ifnull 6
3: aload 1
ifnull 5
4: aload 1
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdownNow:()Ljava/util/List;
pop
5: StackMap locals: java.util.concurrent.ScheduledExecutorService
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 1
ifnonnull 8
7: aload 0
aload 0
invokevirtual reactor.core.scheduler.SingleScheduler.get:()Ljava/util/concurrent/ScheduledExecutorService;
invokestatic reactor.core.scheduler.Schedulers.decorateExecutorService:(Lreactor/core/scheduler/Scheduler;Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;
astore 1
8: StackMap locals:
StackMap stack:
getstatic reactor.core.scheduler.SingleScheduler.EXECUTORS:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
aload 2
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.compareAndSet:(Ljava/lang/Object;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 Lreactor/core/scheduler/SingleScheduler;
1 10 1 b Ljava/util/concurrent/ScheduledExecutorService;
2 10 2 a Ljava/util/concurrent/ScheduledExecutorService;
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
astore 1
start local 1 1: aload 1
getstatic reactor.core.scheduler.SingleScheduler.TERMINATED:Ljava/util/concurrent/ScheduledExecutorService;
if_acmpeq 5
2: getstatic reactor.core.scheduler.SingleScheduler.EXECUTORS:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
aload 0
getstatic reactor.core.scheduler.SingleScheduler.TERMINATED:Ljava/util/concurrent/ScheduledExecutorService;
invokevirtual java.util.concurrent.atomic.AtomicReferenceFieldUpdater.getAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.ScheduledExecutorService
astore 1
3: aload 1
getstatic reactor.core.scheduler.SingleScheduler.TERMINATED:Ljava/util/concurrent/ScheduledExecutorService;
if_acmpeq 5
aload 1
ifnull 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 Lreactor/core/scheduler/SingleScheduler;
1 6 1 a Ljava/util/concurrent/ScheduledExecutorService;
public reactor.core.Disposable schedule(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Lreactor/core/Disposable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
aload 1
aconst_null
lconst_0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic reactor.core.scheduler.Schedulers.directSchedule:(Ljava/util/concurrent/ScheduledExecutorService;Ljava/lang/Runnable;Lreactor/core/Disposable;JLjava/util/concurrent/TimeUnit;)Lreactor/core/Disposable;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lreactor/core/scheduler/SingleScheduler;
0 1 1 task Ljava/lang/Runnable;
MethodParameters:
Name Flags
task
public reactor.core.Disposable schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lreactor/core/Disposable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
getfield reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
aload 1
aconst_null
lload 2
aload 4
invokestatic reactor.core.scheduler.Schedulers.directSchedule:(Ljava/util/concurrent/ScheduledExecutorService;Ljava/lang/Runnable;Lreactor/core/Disposable;JLjava/util/concurrent/TimeUnit;)Lreactor/core/Disposable;
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lreactor/core/scheduler/SingleScheduler;
0 1 1 task Ljava/lang/Runnable;
0 1 2 delay J
0 1 4 unit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
task
delay
unit
public reactor.core.Disposable schedulePeriodically(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Lreactor/core/Disposable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 6 0: aload 0
getfield reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
1: aload 1
2: lload 2
3: lload 4
4: aload 6
5: invokestatic reactor.core.scheduler.Schedulers.directSchedulePeriodically:(Ljava/util/concurrent/ScheduledExecutorService;Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Lreactor/core/Disposable;
areturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lreactor/core/scheduler/SingleScheduler;
0 6 1 task Ljava/lang/Runnable;
0 6 2 initialDelay J
0 6 4 period J
0 6 6 unit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
task
initialDelay
period
unit
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "single"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: bipush 40
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
2: astore 1
start local 1 3: aload 0
getfield reactor.core.scheduler.SingleScheduler.factory:Ljava/util/concurrent/ThreadFactory;
instanceof reactor.core.scheduler.ReactorThreadFactory
ifeq 5
4: aload 1
bipush 34
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
getfield reactor.core.scheduler.SingleScheduler.factory:Ljava/util/concurrent/ThreadFactory;
checkcast reactor.core.scheduler.ReactorThreadFactory
invokevirtual reactor.core.scheduler.ReactorThreadFactory.get:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 34
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lreactor/core/scheduler/SingleScheduler;
3 6 1 ts Ljava/lang/StringBuilder;
public java.lang.Object scanUnsafe(reactor.core.Scannable$Attr);
descriptor: (Lreactor/core/Scannable$Attr;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic reactor.core.Scannable$Attr.TERMINATED:Lreactor/core/Scannable$Attr;
if_acmpeq 1
aload 1
getstatic reactor.core.Scannable$Attr.CANCELLED:Lreactor/core/Scannable$Attr;
if_acmpne 2
StackMap locals:
StackMap stack:
1: aload 0
invokevirtual reactor.core.scheduler.SingleScheduler.isDisposed:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
2: StackMap locals:
StackMap stack:
aload 1
getstatic reactor.core.Scannable$Attr.NAME:Lreactor/core/Scannable$Attr;
if_acmpne 3
aload 0
invokevirtual reactor.core.scheduler.SingleScheduler.toString:()Ljava/lang/String;
areturn
3: StackMap locals:
StackMap stack:
aload 1
getstatic reactor.core.Scannable$Attr.CAPACITY:Lreactor/core/Scannable$Attr;
if_acmpeq 4
aload 1
getstatic reactor.core.Scannable$Attr.BUFFERED:Lreactor/core/Scannable$Attr;
if_acmpne 5
StackMap locals:
StackMap stack:
4: iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
aload 1
invokestatic reactor.core.scheduler.Schedulers.scanExecutor:(Ljava/util/concurrent/Executor;Lreactor/core/Scannable$Attr;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lreactor/core/scheduler/SingleScheduler;
0 6 1 key Lreactor/core/Scannable$Attr;
MethodParameters:
Name Flags
key
public reactor.core.scheduler.Scheduler$Worker createWorker();
descriptor: ()Lreactor/core/scheduler/Scheduler$Worker;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new reactor.core.scheduler.ExecutorServiceWorker
dup
aload 0
getfield reactor.core.scheduler.SingleScheduler.executor:Ljava/util/concurrent/ScheduledExecutorService;
invokespecial reactor.core.scheduler.ExecutorServiceWorker.<init>:(Ljava/util/concurrent/ScheduledExecutorService;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lreactor/core/scheduler/SingleScheduler;
public java.lang.Object get();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual reactor.core.scheduler.SingleScheduler.get:()Ljava/util/concurrent/ScheduledExecutorService;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lreactor/core/scheduler/Scheduler;Ljava/util/function/Supplier<Ljava/util/concurrent/ScheduledExecutorService;>;Lreactor/core/Scannable;
SourceFile: "SingleScheduler.java"
InnerClasses:
public Attr = reactor.core.Scannable$Attr of reactor.core.Scannable
public abstract Worker = reactor.core.scheduler.Scheduler$Worker of reactor.core.scheduler.Scheduler