public final class ObservedSerializationDuration extends Base
HttpRequestIntent object.| Modifier and Type | Field and Description |
|---|---|
protected Long |
durationInMilliseconds |
protected SphereRequest<?> |
request |
protected String |
requestId |
| Modifier and Type | Method and Description |
|---|---|
Long |
getDurationInMilliseconds()
The duration in milliseconds.
|
SphereRequest<?> |
getRequest()
The sphere request related to the observed duration.
|
String |
getRequestId()
The
SimpleMetricsSphereClient adds a request ID to each SphereRequest, so that ObservedDurations belonging to the same request can be associated.. |
String |
getTopic()
A String to describe the topic associated with the observed duration (e.g.
|
static ObservedSerializationDuration |
of(long durationInMilliseconds,
String requestId,
SphereRequest<?> request) |
protected final String requestId
protected final Long durationInMilliseconds
protected final SphereRequest<?> request
public static ObservedSerializationDuration of(long durationInMilliseconds, String requestId, SphereRequest<?> request)
public Long getDurationInMilliseconds()
ObservedDurationgetDurationInMilliseconds in interface ObservedDurationpublic String getRequestId()
ObservedDurationSimpleMetricsSphereClient adds a request ID to each SphereRequest, so that ObservedDurations belonging to the same request can be associated..
This is necessary since a SphereRequest can be reused for multiple requests.
getRequestId in interface ObservedDurationpublic SphereRequest<?> getRequest()
ObservedDurationgetRequest in interface ObservedDurationpublic final String getTopic()
ObservedDurationgetTopic in interface ObservedDuration