
com.rbkmoney.woody.api.trace.ServiceSpan Maven / Gradle / Ivy
package com.rbkmoney.woody.api.trace;
import java.util.concurrent.atomic.AtomicInteger;
public class ServiceSpan extends ContextSpan {
private final AtomicInteger counter;
public ServiceSpan() {
counter = new AtomicInteger();
}
protected ServiceSpan(ServiceSpan serviceSpan) {
super(serviceSpan);
this.counter = serviceSpan.counter;
}
public ServiceSpan cloneObject() {
return new ServiceSpan(this);
}
public AtomicInteger getCounter() {
return counter;
}
public void reset() {
super.reset();
counter.set(0);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy