what-the-bank/sources/io/grpc/internal/AtomicLongCounter.java

19 lines
465 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.grpc.internal;
import java.util.concurrent.atomic.AtomicLong;
/* loaded from: classes6.dex */
final class AtomicLongCounter implements LongCounter {
private final AtomicLong counter = new AtomicLong();
@Override // io.grpc.internal.LongCounter
public final void add(long j) {
this.counter.getAndAdd(j);
}
@Override // io.grpc.internal.LongCounter
public final long value() {
return this.counter.get();
}
}