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 classCommandMetrics.CommandLatency -
Constructor Summary
Constructors Constructor Description CommandMetrics(long count, TimeUnit timeUnit, CommandMetrics.CommandLatency firstResponse, CommandMetrics.CommandLatency completion) -
Method Summary
Modifier and Type Method Description CommandMetrics.CommandLatencygetCompletion()longgetCount()CommandMetrics.CommandLatencygetFirstResponse()TimeUnitgetTimeUnit()StringtoString()
-
Constructor Details
-
CommandMetrics
public CommandMetrics(long count, TimeUnit timeUnit, CommandMetrics.CommandLatency firstResponse, CommandMetrics.CommandLatency completion)
-
-
Method Details
-
getCount
public long getCount()- Returns:
- the count
-
getTimeUnit
- Returns:
- the time unit for the
getFirstResponse()andgetCompletion()latencies.
-
getFirstResponse
- Returns:
- latencies between send and the first command response
-
getCompletion
- Returns:
- latencies between send and the command completion
-
toString
-