All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.marschall.micrometer.jfr.JfrCounterEvent Maven / Gradle / Ivy

There is a newer version: 1.13.0
Show newest version
package com.github.marschall.micrometer.jfr;

import io.micrometer.core.instrument.Meter.Id;
import jdk.jfr.Event;

final class JfrCounterEvent extends AbstractJfrMeterEvent {

  JfrCounterEvent(Id id, Event event) {
    super(id, event);
  }

  void setValues(double increment, double value) {
    int attributeIndex = 0;

    attributeIndex = this.setCommonEventAttributes(attributeIndex);

    event.set(attributeIndex++, increment);
    event.set(attributeIndex++, value);

  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy