public interface RequestStatistics
RequestStatistics
interface defines statistic values about request processing.Modifier and Type | Method | Description |
---|---|---|
int |
getIndexOfMessageResponded() |
Gets the index of the message that has been responded.
|
long |
getResponseRuntimeNanos() |
Gets the time elapsed between the sending of the message and receiving its response.
|
int |
getTotalMessagesSent() |
Gets the total number of messages that have been sent on behalf of this request.
|
void |
setIndexOfMessageResponded(int indexOfMessageResponded) |
Sets the index of the message that has been responded.
|
void |
setResponseRuntimeNanos(long responseRuntimeNanos) |
Sets the time elapsed between the sending of the message and receiving its response.
|
void |
setTotalMessagesSent(int totalMessagesSent) |
Sets the total number of messages that have been sent on behalf of this request.
|
int getTotalMessagesSent()
void setTotalMessagesSent(int totalMessagesSent)
totalMessagesSent
- the total message count for this request.int getIndexOfMessageResponded()
void setIndexOfMessageResponded(int indexOfMessageResponded)
indexOfMessageResponded
- the zero-based index of the message for which the response had been received.long getResponseRuntimeNanos()
void setResponseRuntimeNanos(long responseRuntimeNanos)
responseRuntimeNanos
- the runtime of the successful request and response message pair in nanoseconds.Copyright © 2018 SNMP4J.org. All rights reserved.