public class RecordLimiter extends Object
Constructor and Description |
---|
RecordLimiter(long limit) |
Modifier and Type | Method and Description |
---|---|
void |
add(long delta) |
static RecordLimiter |
create(Long limit) |
void |
increment() |
boolean |
reachLimit() |
public boolean reachLimit()
public void increment()
public void add(long delta)
@Nullable public static RecordLimiter create(@Nullable Long limit)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.