final class com.google.common.util.concurrent.MoreExecutors$DirectExecutorService extends com.google.common.util.concurrent.AbstractListeningExecutorService
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.util.concurrent.MoreExecutors$DirectExecutorService
super_class: com.google.common.util.concurrent.AbstractListeningExecutorService
{
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int runningTasks;
descriptor: I
flags: (0x0002) ACC_PRIVATE
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.concurrent.GuardedBy(value = "lock")
private boolean shutdown;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.concurrent.GuardedBy(value = "lock")
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.google.common.util.concurrent.AbstractListeningExecutorService.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
2: aload 0
iconst_0
putfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
3: aload 0
iconst_0
putfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.shutdown:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
public void execute(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.startTask:()V
1: aload 1
invokeinterface java.lang.Runnable.run:()V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 2
4: aload 0
invokevirtual com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.endTask:()V
5: aload 2
athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.endTask:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
0 8 1 command Ljava/lang/Runnable;
Exception table:
from to target type
1 3 3 any
MethodParameters:
Name Flags
command
public boolean isShutdown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.shutdown:Z
aload 1
monitorexit
2: ireturn
3: StackMap locals: com.google.common.util.concurrent.MoreExecutors$DirectExecutorService java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_1
putfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.shutdown:Z
2: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
ifne 4
3: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()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 Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
Exception table:
from to target type
1 5 6 any
6 7 6 any
public java.util.List<java.lang.Runnable> shutdownNow();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.shutdown:()V
1: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
Signature: ()Ljava/util/List<Ljava/lang/Runnable;>;
public boolean isTerminated();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.shutdown:Z
ifeq 2
aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
ifne 2
iconst_1
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: aload 1
monitorexit
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
Exception table:
from to target type
1 4 5 any
5 6 5 any
public boolean awaitTermination(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 3 0: aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
lstore 4
start local 4 1: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
dup
astore 6
monitorenter
2: StackMap locals: long java.lang.Object
StackMap stack:
aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.shutdown:Z
ifeq 5
aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
ifne 5
3: aload 6
monitorexit
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
lload 4
lconst_0
lcmp
ifgt 8
6: aload 6
monitorexit
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lstore 7
start local 7 9: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
lload 4
invokevirtual java.util.concurrent.TimeUnit.timedWait:(Ljava/lang/Object;J)V
10: lload 4
invokestatic java.lang.System.nanoTime:()J
lload 7
lsub
lsub
lstore 4
end local 7 11: goto 2
12: StackMap locals:
StackMap stack: java.lang.Throwable
aload 6
monitorexit
13: athrow
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
0 14 1 timeout J
0 14 3 unit Ljava/util/concurrent/TimeUnit;
1 14 4 nanos J
9 11 7 now J
Exception table:
from to target type
2 4 12 any
5 7 12 any
8 13 12 any
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timeout
unit
private void startTask();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.shutdown:Z
ifeq 3
2: new java.util.concurrent.RejectedExecutionException
dup
ldc "Executor already shutdown"
invokespecial java.util.concurrent.RejectedExecutionException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
dup
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
iconst_1
iadd
putfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
4: 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 Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
Exception table:
from to target type
1 5 6 any
6 7 6 any
private void endTask();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
dup
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
iconst_1
isub
dup_x1
putfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.runningTasks:I
istore 2
start local 2 2: iload 2
ifne 4
3: aload 0
getfield com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.lock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()V
end local 2 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 Lcom/google/common/util/concurrent/MoreExecutors$DirectExecutorService;
2 4 2 numRunning I
Exception table:
from to target type
1 5 6 any
6 7 6 any
}
SourceFile: "MoreExecutors.java"
NestHost: com.google.common.util.concurrent.MoreExecutors
InnerClasses:
private final DirectExecutorService = com.google.common.util.concurrent.MoreExecutors$DirectExecutorService of com.google.common.util.concurrent.MoreExecutors
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()