Package io.lettuce.core.metrics
Class CommandMetrics
- java.lang.Object
-
- io.lettuce.core.metrics.CommandMetrics
-
public class CommandMetrics extends Object
Latency metrics for commands. This class provides the count, time unit and firstResponse/completion latencies.- Author:
- Mark Paluch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandMetrics.CommandLatency
-
Constructor Summary
Constructors Constructor Description CommandMetrics(long count, TimeUnit timeUnit, CommandMetrics.CommandLatency firstResponse, CommandMetrics.CommandLatency completion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandMetrics.CommandLatency
getCompletion()
long
getCount()
CommandMetrics.CommandLatency
getFirstResponse()
TimeUnit
getTimeUnit()
String
toString()
-
-
-
Constructor Detail
-
CommandMetrics
public CommandMetrics(long count, TimeUnit timeUnit, CommandMetrics.CommandLatency firstResponse, CommandMetrics.CommandLatency completion)
-
-
Method Detail
-
getCount
public long getCount()
- Returns:
- the count
-
getTimeUnit
public TimeUnit getTimeUnit()
- Returns:
- the time unit for the
getFirstResponse()
andgetCompletion()
latencies.
-
getFirstResponse
public CommandMetrics.CommandLatency getFirstResponse()
- Returns:
- latencies between send and the first command response
-
getCompletion
public CommandMetrics.CommandLatency getCompletion()
- Returns:
- latencies between send and the command completion
-
-