Skip to content

Commit

Permalink
LongAdder note
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Oct 31, 2024
1 parent a348c8f commit 30ec787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xds/src/main/java/io/grpc/xds/internal/rlqs/RlqsBucket.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public class RlqsBucket {

// TODO(sergiitk): [impl] consider AtomicLongFieldUpdater
private final AtomicLong lastSnapshotTimeNanos = new AtomicLong(-1);

// TODO(sergiitk): [impl] consider java.util.concurrent.atomic.LongAdder for counters
private final AtomicLong numRequestsAllowed = new AtomicLong();
private final AtomicLong numRequestsDenied = new AtomicLong();

Expand Down

0 comments on commit 30ec787

Please sign in to comment.