public abstract class RollingBuilder<T,S>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Allocator<T> |
allocator |
protected int |
buckets |
protected Clock |
clock |
protected long |
nanosPerBucket |
| Constructor and Description |
|---|
RollingBuilder() |
| Modifier and Type | Method and Description |
|---|---|
RollingBuilder<T,S> |
bucketCount(int buckets) |
RollingBuilder<T,S> |
bucketResolution(long duration,
java.util.concurrent.TimeUnit unit) |
abstract S |
build() |
protected RollingMetrics<T> |
buildRollingMetrics() |
RollingBuilder<T,S> |
withAllocator(Allocator<T> allocator) |
RollingBuilder<T,S> |
withClock(Clock clock) |
protected Clock clock
protected int buckets
protected long nanosPerBucket
public RollingBuilder<T,S> bucketCount(int buckets)
public RollingBuilder<T,S> bucketResolution(long duration, java.util.concurrent.TimeUnit unit)
public RollingBuilder<T,S> withClock(Clock clock)
public RollingBuilder<T,S> withAllocator(Allocator<T> allocator)
public abstract S build()
protected RollingMetrics<T> buildRollingMetrics()
Copyright © 2014 Tim Brooks. All Rights Reserved.