@NotThreadSafe
public class RateLimitedLogBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RateLimitedLogBuilder.MissingPeriod |
static class |
RateLimitedLogBuilder.MissingRateAndPeriod |
Modifier and Type | Method and Description |
---|---|
RateLimitedLog |
build() |
RateLimitedLogBuilder |
recordMetrics(CounterMetric stats)
Optional: should we record metrics about the call rate using @param stats.
|
RateLimitedLogBuilder |
withStopwatch(com.google.common.base.Stopwatch stopwatch)
Specify that the rate-limited logger should compute time using @param stopwatch.
|
public RateLimitedLogBuilder withStopwatch(com.google.common.base.Stopwatch stopwatch)
public RateLimitedLogBuilder recordMetrics(CounterMetric stats)
public RateLimitedLog build()