public abstract class org.eclipse.jetty.util.component.Graceful$Shutdown implements org.eclipse.jetty.util.component.Graceful
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.eclipse.jetty.util.component.Graceful$Shutdown
super_class: java.lang.Object
{
final java.lang.Object _component;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicReference<java.util.concurrent.CompletableFuture<java.lang.Void>> _done;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;>;
protected void <init>(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield org.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
2: aload 0
aload 1
putfield org.eclipse.jetty.util.component.Graceful$Shutdown._component:Ljava/lang/Object;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/component/Graceful$Shutdown;
0 4 1 component Ljava/lang/Object;
MethodParameters:
Name Flags
component
public java.util.concurrent.CompletableFuture<java.lang.Void> shutdown();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnonnull 2
1: aload 0
getfield org.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
new org.eclipse.jetty.util.component.Graceful$Shutdown$1
dup
aload 0
invokespecial org.eclipse.jetty.util.component.Graceful$Shutdown$1.<init>:(Lorg/eclipse/jetty/util/component/Graceful$Shutdown;)V
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.CompletableFuture
astore 1
start local 1 3: aload 0
invokevirtual org.eclipse.jetty.util.component.Graceful$Shutdown.check:()V
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/component/Graceful$Shutdown;
3 5 1 done Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
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.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnull 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/eclipse/jetty/util/component/Graceful$Shutdown;
public void check();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.CompletableFuture
astore 1
start local 1 1: aload 1
ifnull 3
aload 0
invokevirtual org.eclipse.jetty.util.component.Graceful$Shutdown.isShutdownDone:()Z
ifeq 3
2: aload 1
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
3: StackMap locals: java.util.concurrent.CompletableFuture
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/component/Graceful$Shutdown;
1 4 1 done Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.util.concurrent.CompletableFuture
astore 1
start local 1 1: aload 1
ifnull 3
aload 1
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifne 3
2: aload 1
iconst_1
invokevirtual java.util.concurrent.CompletableFuture.cancel:(Z)Z
pop
3: StackMap locals: java.util.concurrent.CompletableFuture
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.component.Graceful$Shutdown._done:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/component/Graceful$Shutdown;
1 5 1 done Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
public abstract boolean isShutdownDone();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
}
SourceFile: "Graceful.java"
NestHost: org.eclipse.jetty.util.component.Graceful
InnerClasses:
public abstract Shutdown = org.eclipse.jetty.util.component.Graceful$Shutdown of org.eclipse.jetty.util.component.Graceful
org.eclipse.jetty.util.component.Graceful$Shutdown$1