| 程序包 | 说明 |
|---|---|
| com.github.netty.core.metrics |
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Clock.CpuTimeClock
A clock implementation which returns the current thread's CPU time.
|
static class |
Clock.UserTimeClock
A clock implementation which returns the current time in epoch nanoseconds.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Clock |
Clock.defaultClock()
The default clock to use.
|
| 限定符和类型 | 方法和说明 |
|---|---|
CsvReporter.Builder |
CsvReporter.Builder.withClock(Clock clock)
Use the given
Clock instance for the time. |
ConsoleReporter.Builder |
ConsoleReporter.Builder.withClock(Clock clock)
Use the given
Clock instance for the time. |
| 构造器和说明 |
|---|
ExponentiallyDecayingReservoir(int size,
double alpha,
Clock clock)
Creates a new
ExponentiallyDecayingReservoir. |
Meter(Clock clock)
Creates a new
Meter. |
SlidingTimeWindowReservoir(long window,
TimeUnit windowUnit,
Clock clock)
Creates a new
SlidingTimeWindowReservoir with the given clock and window of time. |
Timer(Reservoir reservoir,
Clock clock)
|
Copyright © 2020. All rights reserved.