| Modifier and Type | Method and Description |
|---|---|
static ClientConnectionTimingsBuilder |
builder()
Returns a newly created
ClientConnectionTimingsBuilder. |
long |
connectionAcquisitionDurationNanos()
Returns the duration which was taken to get a connection, in nanoseconds.
|
long |
connectionAcquisitionStartTimeMicros()
Returns the time when the client started to acquire a connection, in microseconds since the epoch.
|
long |
connectionAcquisitionStartTimeMillis()
Returns the time when the client started to acquire a connection, in milliseconds since the epoch.
|
long |
dnsResolutionDurationNanos()
Returns the duration which was taken to resolve a domain name, in nanoseconds.
|
long |
dnsResolutionStartTimeMicros()
Returns the time when the client started to resolve a domain name, in microseconds since the epoch.
|
long |
dnsResolutionStartTimeMillis()
Returns the time when the client started to resolve a domain name, in milliseconds since the epoch.
|
static ClientConnectionTimings |
get(RequestContext ctx)
Returns
ClientConnectionTimings from the specified RequestContext if exists. |
static ClientConnectionTimings |
get(RequestLog log)
Returns
ClientConnectionTimings from the specified RequestLog if exists. |
long |
pendingAcquisitionDurationNanos()
Returns the duration which was taken to wait for the completion of an existing connection attempt
in order to use one connection for HTTP/2.
|
long |
pendingAcquisitionStartTimeMicros()
Returns the time when the client started to wait for the completion of an existing connection attempt,
in microseconds since the epoch.
|
long |
pendingAcquisitionStartTimeMillis()
Returns the time when the client started to wait for the completion of an existing connection attempt,
in milliseconds since the epoch.
|
void |
setTo(RequestContext ctx)
Sets this
ClientConnectionTimings to the specified RequestContext. |
void |
setTo(RequestLog log)
Sets this
ClientConnectionTimings to the specified RequestLog. |
long |
socketConnectDurationNanos()
Returns the duration which was taken to connect to a remote peer, in nanoseconds.
|
long |
socketConnectStartTimeMicros()
Returns the time when the client started to connect to a remote peer, in microseconds since the epoch.
|
long |
socketConnectStartTimeMillis()
Returns the time when the client started to connect to a remote peer, in milliseconds since the epoch.
|
String |
toString() |
@Nullable public static ClientConnectionTimings get(RequestContext ctx)
ClientConnectionTimings from the specified RequestContext if exists.setTo(RequestContext)@Nullable public static ClientConnectionTimings get(RequestLog log)
ClientConnectionTimings from the specified RequestLog if exists.setTo(RequestLog)public static ClientConnectionTimingsBuilder builder()
ClientConnectionTimingsBuilder.public void setTo(RequestContext ctx)
ClientConnectionTimings to the specified RequestContext.
Note that this method is intended for internal use. Do not use unless you really need to.get(RequestContext)public void setTo(RequestLog log)
ClientConnectionTimings to the specified RequestLog.
Note that this method is intended for internal use. Do not use unless you really need to.get(RequestLog)public long connectionAcquisitionStartTimeMicros()
public long connectionAcquisitionStartTimeMillis()
public long connectionAcquisitionDurationNanos()
dnsResolutionDurationNanos(), socketConnectDurationNanos() and
pendingAcquisitionDurationNanos().public long dnsResolutionStartTimeMicros()
-1 if there was no action to resolve a domain name.public long dnsResolutionStartTimeMillis()
-1 if there was no action to resolve a domain name.public long dnsResolutionDurationNanos()
-1 if there was no action to resolve a domain name.public long socketConnectStartTimeMicros()
-1 if there was no action to connect to a remote peer.public long socketConnectStartTimeMillis()
-1 if there was no action to connect to a remote peer.public long socketConnectDurationNanos()
-1 if there was no action to connect to a remote peer.public long pendingAcquisitionStartTimeMicros()
-1 if there was no action to get a pending connection.public long pendingAcquisitionStartTimeMillis()
-1 if there was no action to get a pending connection.public long pendingAcquisitionDurationNanos()
-1 if there was no action to get a pending connection.Copyright © 2020 LeanCloud. All rights reserved.