public class org.apache.tomcat.util.threads.TaskQueue extends java.util.concurrent.LinkedBlockingQueue<java.lang.Runnable>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.threads.TaskQueue
super_class: java.util.concurrent.LinkedBlockingQueue
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
protected static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private volatile transient org.apache.tomcat.util.threads.ThreadPoolExecutor parent;
descriptor: Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
flags: (0x00c2) ACC_PRIVATE, ACC_VOLATILE, ACC_TRANSIENT
private java.lang.Integer forcedRemainingCapacity;
descriptor: Ljava/lang/Integer;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "org.apache.tomcat.util.threads.res"
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/String;)Lorg/apache/tomcat/util/res/StringManager;
1: putstatic org.apache.tomcat.util.threads.TaskQueue.sm:Lorg/apache/tomcat/util/res/StringManager;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:()V
1: aload 0
aconst_null
putfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
2: aload 0
aconst_null
putfield org.apache.tomcat.util.threads.TaskQueue.forcedRemainingCapacity:Ljava/lang/Integer;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:(I)V
1: aload 0
aconst_null
putfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
2: aload 0
aconst_null
putfield org.apache.tomcat.util.threads.TaskQueue.forcedRemainingCapacity:Ljava/lang/Integer;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 4 1 capacity I
MethodParameters:
Name Flags
capacity
public void <init>(java.util.Collection<? extends java.lang.Runnable>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:(Ljava/util/Collection;)V
1: aload 0
aconst_null
putfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
2: aload 0
aconst_null
putfield org.apache.tomcat.util.threads.TaskQueue.forcedRemainingCapacity:Ljava/lang/Integer;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 4 1 c Ljava/util/Collection<+Ljava/lang/Runnable;>;
Signature: (Ljava/util/Collection<+Ljava/lang/Runnable;>;)V
MethodParameters:
Name Flags
c
public void setParent(org.apache.tomcat.util.threads.ThreadPoolExecutor);
descriptor: (Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 2 1 tp Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
MethodParameters:
Name Flags
tp
public boolean force(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
ifnull 1
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.isShutdown:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.util.concurrent.RejectedExecutionException
dup
getstatic org.apache.tomcat.util.threads.TaskQueue.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "taskQueue.notRunning"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.util.concurrent.RejectedExecutionException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.util.concurrent.LinkedBlockingQueue.offer:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 3 1 o Ljava/lang/Runnable;
MethodParameters:
Name Flags
o
public boolean force(java.lang.Runnable, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Z
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
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
ifnull 1
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.isShutdown:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.util.concurrent.RejectedExecutionException
dup
getstatic org.apache.tomcat.util.threads.TaskQueue.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "taskQueue.notRunning"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.util.concurrent.RejectedExecutionException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
lload 2
aload 4
invokespecial java.util.concurrent.LinkedBlockingQueue.offer:(Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Z
ireturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 3 1 o Ljava/lang/Runnable;
0 3 2 timeout J
0 3 4 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
o
timeout
unit
public boolean offer(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
ifnonnull 1
aload 0
aload 1
invokespecial java.util.concurrent.LinkedBlockingQueue.offer:(Ljava/lang/Object;)Z
ireturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.getPoolSize:()I
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.getMaximumPoolSize:()I
if_icmpne 2
aload 0
aload 1
invokespecial java.util.concurrent.LinkedBlockingQueue.offer:(Ljava/lang/Object;)Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.getSubmittedCount:()I
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.getPoolSize:()I
if_icmpgt 3
aload 0
aload 1
invokespecial java.util.concurrent.LinkedBlockingQueue.offer:(Ljava/lang/Object;)Z
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.getPoolSize:()I
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.getMaximumPoolSize:()I
if_icmpge 4
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.util.concurrent.LinkedBlockingQueue.offer:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 5 1 o Ljava/lang/Runnable;
MethodParameters:
Name Flags
o
public java.lang.Runnable poll(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Runnable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
lload 1
aload 3
invokespecial java.util.concurrent.LinkedBlockingQueue.poll:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
checkcast java.lang.Runnable
astore 4
start local 4 1: aload 4
ifnonnull 3
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
ifnull 3
2: aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.stopCurrentThreadIfNeeded:()V
3: StackMap locals: java.lang.Runnable
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 4 1 timeout J
0 4 3 unit Ljava/util/concurrent/TimeUnit;
1 4 4 runnable Ljava/lang/Runnable;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timeout
unit
public java.lang.Runnable take();
descriptor: ()Ljava/lang/Runnable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
ifnull 4
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.currentThreadShouldBeStopped:()Z
ifeq 4
1: aload 0
aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.parent:Lorg/apache/tomcat/util/threads/ThreadPoolExecutor;
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.tomcat.util.threads.ThreadPoolExecutor.getKeepAliveTime:(Ljava/util/concurrent/TimeUnit;)J
2: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
3: invokevirtual org.apache.tomcat.util.threads.TaskQueue.poll:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Runnable;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokespecial java.util.concurrent.LinkedBlockingQueue.take:()Ljava/lang/Object;
checkcast java.lang.Runnable
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
Exceptions:
throws java.lang.InterruptedException
public int remainingCapacity();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.forcedRemainingCapacity:Ljava/lang/Integer;
ifnull 2
1: aload 0
getfield org.apache.tomcat.util.threads.TaskQueue.forcedRemainingCapacity:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokespecial java.util.concurrent.LinkedBlockingQueue.remainingCapacity:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
public void setForcedRemainingCapacity(java.lang.Integer);
descriptor: (Ljava/lang/Integer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.threads.TaskQueue.forcedRemainingCapacity:Ljava/lang/Integer;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/threads/TaskQueue;
0 2 1 forcedRemainingCapacity Ljava/lang/Integer;
MethodParameters:
Name Flags
forcedRemainingCapacity
public java.lang.Object poll(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=3
0: aload 0
lload 1
aload 3
invokevirtual org.apache.tomcat.util.threads.TaskQueue.poll:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Runnable;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.InterruptedException
public boolean offer(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Runnable
invokevirtual org.apache.tomcat.util.threads.TaskQueue.offer:(Ljava/lang/Runnable;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object take();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.tomcat.util.threads.TaskQueue.take:()Ljava/lang/Runnable;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.InterruptedException
}
Signature: Ljava/util/concurrent/LinkedBlockingQueue<Ljava/lang/Runnable;>;
SourceFile: "TaskQueue.java"