File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
plugin/src/main/java/dev/regadas/trino/pubsub/listener/metrics Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 5
5
import io .airlift .stats .DecayCounter ;
6
6
import java .util .List ;
7
7
import java .util .function .Function ;
8
+ import javax .annotation .concurrent .ThreadSafe ;
8
9
import org .weakref .jmx .Managed ;
9
10
11
+ @ ThreadSafe
10
12
public final class DecayRatio {
11
13
private final DecayCounter numeratorCounter ;
12
14
private final List <DecayCounter > denominatorCounters ;
Original file line number Diff line number Diff line change 6
6
import io .airlift .stats .DecayCounter ;
7
7
import java .util .List ;
8
8
import java .util .function .Function ;
9
+ import javax .annotation .concurrent .ThreadSafe ;
9
10
import org .weakref .jmx .Managed ;
10
11
import org .weakref .jmx .Nested ;
11
12
13
+ @ ThreadSafe
12
14
public class RatioStat {
13
15
private final CounterStat numeratorCounter ;
14
16
private final List <CounterStat > denominatorCounters ;
You can’t perform that action at this time.
0 commit comments