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 ObservedDuration s 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()
ObservedDuration
getDurationInMilliseconds
in interface ObservedDuration
public String getRequestId()
ObservedDuration
SimpleMetricsSphereClient
adds a request ID to each SphereRequest
, so that ObservedDuration
s belonging to the same request can be associated..
This is necessary since a SphereRequest
can be reused for multiple requests.
getRequestId
in interface ObservedDuration
public SphereRequest<?> getRequest()
ObservedDuration
getRequest
in interface ObservedDuration
public final String getTopic()
ObservedDuration
getTopic
in interface ObservedDuration