public class org.eclipse.jetty.util.statistic.CounterStatistic
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.statistic.CounterStatistic
super_class: java.lang.Object
{
private final java.util.concurrent.atomic.LongAccumulator _max;
descriptor: Ljava/util/concurrent/atomic/LongAccumulator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicLong _current;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.LongAdder _total;
descriptor: Ljava/util/concurrent/atomic/LongAdder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.LongAccumulator
dup
invokedynamic applyAsLong()Ljava/util/function/LongBinaryOperator;
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:
(JJ)J
java/lang/Math.max(JJ)J (6)
(JJ)J
lconst_0
invokespecial java.util.concurrent.atomic.LongAccumulator.<init>:(Ljava/util/function/LongBinaryOperator;J)V
putfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
2: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield org.eclipse.jetty.util.statistic.CounterStatistic._current:Ljava/util/concurrent/atomic/AtomicLong;
3: aload 0
new java.util.concurrent.atomic.LongAdder
dup
invokespecial java.util.concurrent.atomic.LongAdder.<init>:()V
putfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.reset:()V
1: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
invokevirtual java.util.concurrent.atomic.LongAccumulator.reset:()V
2: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._current:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 1
start local 1 3: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
lload 1
invokevirtual java.util.concurrent.atomic.LongAdder.add:(J)V
4: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
lload 1
invokevirtual java.util.concurrent.atomic.LongAccumulator.accumulate:(J)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
3 6 1 current J
public void reset(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._current:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
invokevirtual java.util.concurrent.atomic.AtomicLong.set:(J)V
1: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.reset:()V
2: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
invokevirtual java.util.concurrent.atomic.LongAccumulator.reset:()V
3: lload 1
lconst_0
lcmp
ifle 6
4: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
lload 1
invokevirtual java.util.concurrent.atomic.LongAdder.add:(J)V
5: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
lload 1
invokevirtual java.util.concurrent.atomic.LongAccumulator.accumulate:(J)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
0 7 1 value J
MethodParameters:
Name Flags
value final
public long add(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._current:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
lstore 3
start local 3 1: lload 1
lconst_0
lcmp
ifle 4
2: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
lload 1
invokevirtual java.util.concurrent.atomic.LongAdder.add:(J)V
3: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
lload 3
invokevirtual java.util.concurrent.atomic.LongAccumulator.accumulate:(J)V
4: StackMap locals: long
StackMap stack:
lload 3
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
0 5 1 delta J
1 5 3 value J
MethodParameters:
Name Flags
delta final
public long increment();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._current:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
lstore 1
start local 1 1: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.increment:()V
2: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
lload 1
invokevirtual java.util.concurrent.atomic.LongAccumulator.accumulate:(J)V
3: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
1 4 1 value J
public long decrement();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._current:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.decrementAndGet:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
public long getMax();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._max:Ljava/util/concurrent/atomic/LongAccumulator;
invokevirtual java.util.concurrent.atomic.LongAccumulator.get:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
public long getCurrent();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._current:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
public long getTotal();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.statistic.CounterStatistic._total:Ljava/util/concurrent/atomic/LongAdder;
invokevirtual java.util.concurrent.atomic.LongAdder.sum:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: ldc "%s@%x{c=%d,m=%d,t=%d}"
iconst_5
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual java.lang.Object.hashCode:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.getCurrent:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_3
aload 0
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.getMax:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_4
aload 0
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.getTotal:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/statistic/CounterStatistic;
}
SourceFile: "CounterStatistic.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles