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

com.raynigon.ecs.logging.async.service.helper.MicrometerSample Maven / Gradle / Ivy

package com.raynigon.ecs.logging.async.service.helper;

import io.micrometer.core.instrument.Timer;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public class MicrometerSample implements SampleWrapper {

    private final Timer timer;
    private final Timer.Sample sample;

    public long stop() {
        return sample.stop(timer);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy