public class org.glassfish.grizzly.utils.DelayedExecutor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.utils.DelayedExecutor
super_class: java.lang.Object
{
public static final long UNSET_TIMEOUT;
descriptor: J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private final java.util.concurrent.ExecutorService threadPool;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.glassfish.grizzly.utils.DelayedExecutor$DelayedRunnable runnable;
descriptor: Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayedRunnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Queue<org.glassfish.grizzly.utils.DelayedExecutor$DelayQueue> queues;
descriptor: Ljava/util/Queue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Queue<Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayQueue;>;
private final java.lang.Object sync;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean isStarted;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final long checkIntervalMillis;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.util.concurrent.ExecutorService);
descriptor: (Ljava/util/concurrent/ExecutorService;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc 1000
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokespecial org.glassfish.grizzly.utils.DelayedExecutor.<init>:(Ljava/util/concurrent/ExecutorService;JLjava/util/concurrent/TimeUnit;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/utils/DelayedExecutor;
0 2 1 threadPool Ljava/util/concurrent/ExecutorService;
MethodParameters:
Name Flags
threadPool final
public void <init>(java.util.concurrent.ExecutorService, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/util/concurrent/ExecutorService;JLjava/util/concurrent/TimeUnit;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.glassfish.grizzly.utils.DelayedExecutor$DelayedRunnable
dup
aload 0
invokespecial org.glassfish.grizzly.utils.DelayedExecutor$DelayedRunnable.<init>:(Lorg/glassfish/grizzly/utils/DelayedExecutor;)V
putfield org.glassfish.grizzly.utils.DelayedExecutor.runnable:Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayedRunnable;
2: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield org.glassfish.grizzly.utils.DelayedExecutor.queues:Ljava/util/Queue;
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.glassfish.grizzly.utils.DelayedExecutor.sync:Ljava/lang/Object;
4: lload 2
lconst_0
lcmp
ifge 6
5: new java.lang.IllegalArgumentException
dup
ldc "check interval can't be negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: org.glassfish.grizzly.utils.DelayedExecutor java.util.concurrent.ExecutorService long java.util.concurrent.TimeUnit
StackMap stack:
aload 0
aload 1
putfield org.glassfish.grizzly.utils.DelayedExecutor.threadPool:Ljava/util/concurrent/ExecutorService;
7: aload 0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 2
aload 4
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
putfield org.glassfish.grizzly.utils.DelayedExecutor.checkIntervalMillis:J
8: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/utils/DelayedExecutor;
0 9 1 threadPool Ljava/util/concurrent/ExecutorService;
0 9 2 checkInterval J
0 9 4 timeunit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
threadPool final
checkInterval final
timeunit final
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.sync:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.isStarted:Z
ifne 4
2: aload 0
iconst_1
putfield org.glassfish.grizzly.utils.DelayedExecutor.isStarted:Z
3: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.threadPool:Ljava/util/concurrent/ExecutorService;
aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.runnable:Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayedRunnable;
invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/utils/DelayedExecutor;
Exception table:
from to target type
1 5 6 any
6 7 6 any
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.sync:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.isStarted:Z
ifeq 4
2: aload 0
iconst_0
putfield org.glassfish.grizzly.utils.DelayedExecutor.isStarted:Z
3: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.sync:Ljava/lang/Object;
invokevirtual java.lang.Object.notify:()V
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/utils/DelayedExecutor;
Exception table:
from to target type
1 5 6 any
6 7 6 any
public void destroy();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.utils.DelayedExecutor.stop:()V
1: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.sync:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.queues:Ljava/util/Queue;
invokeinterface java.util.Queue.clear:()V
3: aload 1
monitorexit
4: goto 7
StackMap locals: org.glassfish.grizzly.utils.DelayedExecutor java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/utils/DelayedExecutor;
Exception table:
from to target type
2 4 5 any
5 6 5 any
public java.util.concurrent.ExecutorService getThreadPool();
descriptor: ()Ljava/util/concurrent/ExecutorService;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.threadPool:Ljava/util/concurrent/ExecutorService;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/DelayedExecutor;
public <E> org.glassfish.grizzly.utils.DelayedExecutor$DelayQueue<E> createDelayQueue(org.glassfish.grizzly.utils.DelayedExecutor$Worker<E>, org.glassfish.grizzly.utils.DelayedExecutor$Resolver<E>);
descriptor: (Lorg/glassfish/grizzly/utils/DelayedExecutor$Worker;Lorg/glassfish/grizzly/utils/DelayedExecutor$Resolver;)Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayQueue;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.glassfish.grizzly.utils.DelayedExecutor$DelayQueue
dup
aload 0
aload 1
aload 2
invokespecial org.glassfish.grizzly.utils.DelayedExecutor$DelayQueue.<init>:(Lorg/glassfish/grizzly/utils/DelayedExecutor;Lorg/glassfish/grizzly/utils/DelayedExecutor$Worker;Lorg/glassfish/grizzly/utils/DelayedExecutor$Resolver;)V
astore 3
start local 3 1: aload 0
getfield org.glassfish.grizzly.utils.DelayedExecutor.queues:Ljava/util/Queue;
aload 3
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/utils/DelayedExecutor;
0 3 1 worker Lorg/glassfish/grizzly/utils/DelayedExecutor$Worker<TE;>;
0 3 2 resolver Lorg/glassfish/grizzly/utils/DelayedExecutor$Resolver<TE;>;
1 3 3 queue Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayQueue<TE;>;
Signature: <E:Ljava/lang/Object;>(Lorg/glassfish/grizzly/utils/DelayedExecutor$Worker<TE;>;Lorg/glassfish/grizzly/utils/DelayedExecutor$Resolver<TE;>;)Lorg/glassfish/grizzly/utils/DelayedExecutor$DelayQueue<TE;>;
MethodParameters:
Name Flags
worker final
resolver final
private static boolean wasModified(long, long);
descriptor: (JJ)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lload 2
lcmp
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 l1 J
0 2 2 l2 J
MethodParameters:
Name Flags
l1 final
l2 final
}
SourceFile: "DelayedExecutor.java"
NestMembers:
org.glassfish.grizzly.utils.DelayedExecutor$DelayQueue org.glassfish.grizzly.utils.DelayedExecutor$DelayedRunnable org.glassfish.grizzly.utils.DelayedExecutor$Resolver org.glassfish.grizzly.utils.DelayedExecutor$Worker
InnerClasses:
public DelayQueue = org.glassfish.grizzly.utils.DelayedExecutor$DelayQueue of org.glassfish.grizzly.utils.DelayedExecutor
private DelayedRunnable = org.glassfish.grizzly.utils.DelayedExecutor$DelayedRunnable of org.glassfish.grizzly.utils.DelayedExecutor
public abstract Resolver = org.glassfish.grizzly.utils.DelayedExecutor$Resolver of org.glassfish.grizzly.utils.DelayedExecutor
public abstract Worker = org.glassfish.grizzly.utils.DelayedExecutor$Worker of org.glassfish.grizzly.utils.DelayedExecutor