public class org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis
super_class: java.lang.Object
{
private static final java.lang.String TIMESTAMP_UPDATE_INTERVAL_PROPERTY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "cassandra.NANOTIMETOMILLIS_TIMESTAMP_UPDATE_INTERVAL"
private static final long TIMESTAMP_UPDATE_INTERVAL;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile long[] TIMESTAMP_BASE;
descriptor: [J
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: ldc "cassandra.NANOTIMETOMILLIS_TIMESTAMP_UPDATE_INTERVAL"
ldc 10000
invokestatic java.lang.Long.getLong:(Ljava/lang/String;J)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
putstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_UPDATE_INTERVAL:J
1: iconst_2
newarray 11
dup
iconst_0
invokestatic java.lang.System.currentTimeMillis:()J
lastore
dup
iconst_1
invokestatic java.lang.System.nanoTime:()J
lastore
putstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_BASE:[J
2: getstatic org.apache.cassandra.concurrent.ScheduledExecutors.scheduledFastTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
invokedynamic run()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/apache/cassandra/utils/NanoTimeToCurrentTimeMillis.updateTimestampBase()V (6)
()V
3: getstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_UPDATE_INTERVAL:J
4: getstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_UPDATE_INTERVAL:J
5: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
6: invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.scheduleWithFixedDelay:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
pop
7: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/NanoTimeToCurrentTimeMillis;
public static long convert(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=3, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_BASE:[J
astore 2
start local 2 1: aload 2
iconst_0
laload
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
lload 0
aload 2
iconst_1
laload
lsub
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
ladd
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 nanoTime J
1 2 2 timestampBase [J
MethodParameters:
Name Flags
nanoTime
public static void updateNow();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.apache.cassandra.concurrent.ScheduledExecutors.scheduledFastTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
invokedynamic run()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/apache/cassandra/utils/NanoTimeToCurrentTimeMillis.updateTimestampBase()V (6)
()V
invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
pop
1: return
LocalVariableTable:
Start End Slot Name Signature
private static void updateTimestampBase();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: iconst_2
newarray 11
dup
iconst_0
1: getstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_BASE:[J
iconst_0
laload
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.Math.max:(JJ)J
lastore
dup
iconst_1
2: getstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_BASE:[J
iconst_1
laload
invokestatic java.lang.System.nanoTime:()J
invokestatic java.lang.Math.max:(JJ)J
lastore
3: putstatic org.apache.cassandra.utils.NanoTimeToCurrentTimeMillis.TIMESTAMP_BASE:[J
4: return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "NanoTimeToCurrentTimeMillis.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles