class com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage
super_class: java.lang.Object
{
private final double alpha;
descriptor: D
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long average;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>(double);
descriptor: (D)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
2: ldc "alpha >= 0.0 and <= 1.0"
dload 1
dconst_0
dcmpl
iflt 3
dload 1
dconst_1
dcmpg
ifgt 3
iconst_1
goto 4
StackMap locals: com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage double
StackMap stack: java.lang.String
3: iconst_0
StackMap locals: com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage double
StackMap stack: java.lang.String int
4: invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
5: aload 0
dload 1
putfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.alpha:D
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
0 7 1 alpha D
MethodParameters:
Name Flags
alpha final
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc -1
putfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
long addSample(long);
descriptor: (J)J
flags: (0x0000)
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
ldc -1
lcmp
ifne 3
1: aload 0
lload 1
putfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.alpha:D
lload 1
l2d
dmul
dconst_1
aload 0
getfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.alpha:D
dsub
aload 0
getfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
l2d
dmul
dadd
d2l
putfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
4: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
0 5 1 sample J
MethodParameters:
Name Flags
sample final
long getAverage();
descriptor: ()J
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
ldc -1
lcmp
ifne 1
lconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.average:J
StackMap locals:
StackMap stack: long
2: lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
}
SourceFile: "ExponentiallyWeightedMovingAverage.java"
RuntimeVisibleAnnotations:
com.mongodb.annotations.NotThreadSafe()