public interface org.eclipse.jetty.util.component.Graceful
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: org.eclipse.jetty.util.component.Graceful
super_class: java.lang.Object
{
public abstract java.util.concurrent.CompletableFuture<java.lang.Void> shutdown();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
public abstract boolean isShutdown();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public static java.util.concurrent.CompletableFuture<java.lang.Void> shutdown(org.eclipse.jetty.util.component.Container);
descriptor: (Lorg/eclipse/jetty/util/component/Container;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
astore 1
start local 1 1: aload 1
ldc "Shutdown {}"
aload 0
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 3: aload 0
instanceof org.eclipse.jetty.util.component.Graceful
ifeq 5
4: aload 2
aload 0
checkcast org.eclipse.jetty.util.component.Graceful
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: StackMap locals: org.slf4j.Logger java.util.List
StackMap stack:
aload 2
aload 0
ldc Lorg/eclipse/jetty/util/component/Graceful;
invokeinterface org.eclipse.jetty.util.component.Container.getContainedBeans:(Ljava/lang/Class;)Ljava/util/Collection;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
6: aload 1
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 8
7: aload 2
aload 1
invokedynamic accept(Lorg/slf4j/Logger;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/eclipse/jetty/util/component/Graceful.lambda$0(Lorg/slf4j/Logger;Lorg/eclipse/jetty/util/component/Graceful;)V (6 itf)
(Lorg/eclipse/jetty/util/component/Graceful;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
8: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/eclipse/jetty/util/component/Graceful.shutdown()Ljava/util/concurrent/CompletableFuture; (9 itf)
(Lorg/eclipse/jetty/util/component/Graceful;)Ljava/util/concurrent/CompletableFuture;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/IntFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(I)Ljava/lang/Object;
org/eclipse/jetty/util/component/Graceful.lambda$2(I)[Ljava/util/concurrent/CompletableFuture; (6 itf)
(I)[Ljava/util/concurrent/CompletableFuture;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.util.concurrent.CompletableFuture[]
invokestatic java.util.concurrent.CompletableFuture.allOf:([Ljava/util/concurrent/CompletableFuture;)Ljava/util/concurrent/CompletableFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 component Lorg/eclipse/jetty/util/component/Container;
1 9 1 log Lorg/slf4j/Logger;
3 9 2 gracefuls Ljava/util/List<Lorg/eclipse/jetty/util/component/Graceful;>;
Signature: (Lorg/eclipse/jetty/util/component/Container;)Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
MethodParameters:
Name Flags
component
public static java.util.concurrent.CompletableFuture<java.lang.Void> shutdown(org.eclipse.jetty.util.component.Graceful$ThrowingRunnable);
descriptor: (Lorg/eclipse/jetty/util/component/Graceful$ThrowingRunnable;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
astore 1
start local 1 1: new org.eclipse.jetty.util.component.Graceful$1
dup
aload 1
invokespecial org.eclipse.jetty.util.component.Graceful$1.<init>:(Ljava/util/concurrent/atomic/AtomicReference;)V
astore 2
start local 2 2: new java.lang.Thread
dup
aload 0
aload 2
invokedynamic run(Lorg/eclipse/jetty/util/component/Graceful$ThrowingRunnable;Ljava/util/concurrent/CompletableFuture;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/eclipse/jetty/util/component/Graceful.lambda$3(Lorg/eclipse/jetty/util/component/Graceful$ThrowingRunnable;Ljava/util/concurrent/CompletableFuture;)V (6 itf)
()V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 3
start local 3 3: aload 3
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
4: aload 1
aload 3
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
5: aload 3
invokevirtual java.lang.Thread.start:()V
6: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runnable Lorg/eclipse/jetty/util/component/Graceful$ThrowingRunnable;
1 7 1 stopThreadReference Ljava/util/concurrent/atomic/AtomicReference<Ljava/lang/Thread;>;
2 7 2 shutdown Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
3 7 3 stopThread Ljava/lang/Thread;
Signature: (Lorg/eclipse/jetty/util/component/Graceful$ThrowingRunnable;)Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
MethodParameters:
Name Flags
runnable
private static void lambda$0(org.slf4j.Logger, org.eclipse.jetty.util.component.Graceful);
descriptor: (Lorg/slf4j/Logger;Lorg/eclipse/jetty/util/component/Graceful;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 1 0: aload 0
ldc "graceful {}"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 g Lorg/eclipse/jetty/util/component/Graceful;
private static java.util.concurrent.CompletableFuture[] lambda$2(int);
descriptor: (I)[Ljava/util/concurrent/CompletableFuture;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
anewarray java.util.concurrent.CompletableFuture
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$3(org.eclipse.jetty.util.component.Graceful$ThrowingRunnable, java.util.concurrent.CompletableFuture);
descriptor: (Lorg/eclipse/jetty/util/component/Graceful$ThrowingRunnable;Ljava/util/concurrent/CompletableFuture;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=2
0: aload 0
invokeinterface org.eclipse.jetty.util.component.Graceful$ThrowingRunnable.run:()V
1: aload 1
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
2: goto 5
3: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 4: aload 1
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
4 5 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
}
SourceFile: "Graceful.java"
NestMembers:
org.eclipse.jetty.util.component.Graceful$1 org.eclipse.jetty.util.component.Graceful$Shutdown org.eclipse.jetty.util.component.Graceful$Shutdown$1 org.eclipse.jetty.util.component.Graceful$ThrowingRunnable
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
org.eclipse.jetty.util.component.Graceful$1
public abstract Shutdown = org.eclipse.jetty.util.component.Graceful$Shutdown of org.eclipse.jetty.util.component.Graceful
public abstract ThrowingRunnable = org.eclipse.jetty.util.component.Graceful$ThrowingRunnable of org.eclipse.jetty.util.component.Graceful