class org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor extends java.util.concurrent.AbstractExecutorService
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor
super_class: java.util.concurrent.AbstractExecutorService
{
private final java.util.concurrent.BlockingQueue<java.lang.Runnable> queue;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<Ljava/lang/Runnable;>;
private final java.util.concurrent.ExecutorService executor;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.Semaphore runnerPermit;
descriptor: Ljava/util/concurrent/Semaphore;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<java.lang.Thread> liveThreads;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Thread;>;
private final int maxWorkers;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.CountDownLatch termination;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean shutdown;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(java.util.concurrent.BlockingQueue<java.lang.Runnable>, java.util.concurrent.ExecutorService, );
descriptor: (Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ExecutorService;I)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.util.concurrent.AbstractExecutorService.<init>:()V
1: aload 0
new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.termination:Ljava/util/concurrent/CountDownLatch;
2: aload 0
aload 1
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.queue:Ljava/util/concurrent/BlockingQueue;
3: aload 0
aload 2
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.executor:Ljava/util/concurrent/ExecutorService;
4: aload 0
iload 3
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.maxWorkers:I
5: aload 0
new java.util.concurrent.Semaphore
dup
iload 3
invokespecial java.util.concurrent.Semaphore.<init>:(I)V
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.runnerPermit:Ljava/util/concurrent/Semaphore;
6: aload 0
new java.util.concurrent.CopyOnWriteArraySet
dup
invokespecial java.util.concurrent.CopyOnWriteArraySet.<init>:()V
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.liveThreads:Ljava/util/Set;
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;
0 8 1 queue Ljava/util/concurrent/BlockingQueue<Ljava/lang/Runnable;>;
0 8 2 executor Ljava/util/concurrent/ExecutorService;
0 8 3 maxWorkers I
Signature: (Ljava/util/concurrent/BlockingQueue<Ljava/lang/Runnable;>;Ljava/util/concurrent/ExecutorService;I)V
MethodParameters:
Name Flags
queue
executor
maxWorkers
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.shutdown:Z
1: aload 0
invokevirtual org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.isTerminated:()Z
ifeq 3
2: aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.termination:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;
public java.util.List<java.lang.Runnable> shutdownNow();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.shutdown:Z
1: aload 0
invokevirtual org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.isTerminated:()Z
ifeq 4
2: aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.termination:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
3: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
4: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.queue:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 5: aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.queue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokeinterface java.util.concurrent.BlockingQueue.drainTo:(Ljava/util/Collection;)I
pop
6: aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.liveThreads:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals: org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor java.util.List top java.util.Iterator
StackMap stack:
7: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Thread
astore 2
start local 2 8: aload 2
invokevirtual java.lang.Thread.interrupt:()V
end local 2 9: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
10: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;
5 11 1 failed Ljava/util/List<Ljava/lang/Runnable;>;
8 9 2 t Ljava/lang/Thread;
Signature: ()Ljava/util/List<Ljava/lang/Runnable;>;
public boolean isShutdown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.shutdown:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;
public boolean isTerminated();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.isShutdown:()Z
ifeq 1
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.queue:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.isEmpty:()Z
ifeq 1
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.runnerPermit:Ljava/util/concurrent/Semaphore;
invokevirtual java.util.concurrent.Semaphore.availablePermits:()I
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.maxWorkers:I
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 Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;
public boolean awaitTermination(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokevirtual org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.isTerminated:()Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.termination:Ljava/util/concurrent/CountDownLatch;
lload 1
aload 3
invokevirtual java.util.concurrent.CountDownLatch.await:(JLjava/util/concurrent/TimeUnit;)Z
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;
0 3 1 time J
0 3 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
time
unit
public void execute(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.shutdown:Z
ifeq 2
1: new java.util.concurrent.RejectedExecutionException
dup
ldc "Executor is shutting down"
invokespecial java.util.concurrent.RejectedExecutionException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: StackMap locals: int
StackMap stack:
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.queue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokeinterface java.util.concurrent.BlockingQueue.put:(Ljava/lang/Object;)V
4: goto 12
5: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
6: iconst_1
istore 2
7: goto 3
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
9: iload 2
ifeq 11
10: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
11: StackMap locals: java.lang.Throwable
StackMap stack:
aload 3
athrow
12: StackMap locals:
StackMap stack:
iload 2
ifeq 14
13: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
14: StackMap locals:
StackMap stack:
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.shutdown:Z
ifeq 16
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.queue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokeinterface java.util.concurrent.BlockingQueue.remove:(Ljava/lang/Object;)Z
ifeq 16
15: new java.util.concurrent.RejectedExecutionException
dup
ldc "Executor is shutting down"
invokespecial java.util.concurrent.RejectedExecutionException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.runnerPermit:Ljava/util/concurrent/Semaphore;
invokevirtual java.util.concurrent.Semaphore.tryAcquire:()Z
ifeq 18
17: aload 0
getfield org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor.executor:Ljava/util/concurrent/ExecutorService;
new org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor$1
dup
aload 0
invokespecial org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor$1.<init>:(Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;)V
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
pop
18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/ehcache/impl/internal/executor/PartitionedUnorderedExecutor;
0 19 1 r Ljava/lang/Runnable;
3 19 2 interrupted Z
Exception table:
from to target type
3 4 5 Class java.lang.InterruptedException
3 8 8 any
MethodParameters:
Name Flags
r
}
SourceFile: "PartitionedUnorderedExecutor.java"
NestMembers:
org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor$1
InnerClasses:
org.ehcache.impl.internal.executor.PartitionedUnorderedExecutor$1