com.netflix.spectator.api.histogram
package. This is now just a
thin wrapper to preserve compatibility. This class is scheduled for removal in a future release.@Deprecated public final class BucketTimer extends Object implements com.netflix.spectator.api.Timer
Modifier and Type | Method and Description |
---|---|
com.netflix.spectator.api.Clock |
clock()
Deprecated.
|
long |
count()
Deprecated.
|
static BucketTimer |
get(com.netflix.spectator.api.Id id,
BucketFunction f)
Deprecated.
Creates a timer object that manages a set of timers based on the bucket
function supplied.
|
static BucketTimer |
get(com.netflix.spectator.api.Registry registry,
com.netflix.spectator.api.Id id,
BucketFunction f)
Deprecated.
Creates a timer object that manages a set of timers based on the bucket
function supplied.
|
boolean |
hasExpired()
Deprecated.
|
com.netflix.spectator.api.Id |
id()
Deprecated.
|
Iterable<com.netflix.spectator.api.Measurement> |
measure()
Deprecated.
|
void |
record(long amount,
TimeUnit unit)
Deprecated.
|
long |
totalTime()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchUpdater, record, record, record, record, record, recordBooleanSupplier, recordCallable, recordDoubleSupplier, recordIntSupplier, recordLongSupplier, recordRunnable, recordSupplier, wrapBiConsumer, wrapBiFunction, wrapBinaryOperator, wrapBiPredicate, wrapBooleanSupplier, wrapCallable, wrapConsumer, wrapDoubleBinaryOperator, wrapDoubleConsumer, wrapDoubleFunction, wrapDoublePredicate, wrapDoubleSupplier, wrapDoubleToIntFunction, wrapDoubleToLongFunction, wrapDoubleUnaryOperator, wrapFunction, wrapIntBinaryOperator, wrapIntConsumer, wrapIntFunction, wrapIntPredicate, wrapIntSupplier, wrapIntToDoubleFunction, wrapIntToLongFunction, wrapIntUnaryOperator, wrapLongBinaryOperator, wrapLongConsumer, wrapLongFunction, wrapLongPredicate, wrapLongSupplier, wrapLongToDoubleFunction, wrapLongToIntFunction, wrapLongUnaryOperator, wrapObjDoubleConsumer, wrapObjIntConsumer, wrapObjLongConsumer, wrapPredicate, wrapRunnable, wrapSupplier, wrapToDoubleBiFunction, wrapToDoubleFunction, wrapToIntBiFunction, wrapToIntFunction, wrapToLongBiFunction, wrapToLongFunction, wrapUnaryOperator
public static BucketTimer get(com.netflix.spectator.api.Id id, BucketFunction f)
id
- Identifier for the metric being registered.f
- Function to map values to buckets.public static BucketTimer get(com.netflix.spectator.api.Registry registry, com.netflix.spectator.api.Id id, BucketFunction f)
registry
- Registry to use.id
- Identifier for the metric being registered.f
- Function to map values to buckets.public com.netflix.spectator.api.Id id()
id
in interface com.netflix.spectator.api.Meter
public Iterable<com.netflix.spectator.api.Measurement> measure()
measure
in interface com.netflix.spectator.api.Meter
public boolean hasExpired()
hasExpired
in interface com.netflix.spectator.api.Meter
public com.netflix.spectator.api.Clock clock()
clock
in interface com.netflix.spectator.api.Timer
public void record(long amount, TimeUnit unit)
record
in interface com.netflix.spectator.api.Timer
public long count()
count
in interface com.netflix.spectator.api.Timer
public long totalTime()
totalTime
in interface com.netflix.spectator.api.Timer