Class ClientConnectionTimingsBuilder
java.lang.Object
com.linecorp.armeria.common.logging.ClientConnectionTimingsBuilder
Builds a new
ClientConnectionTimings
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newly-createdClientConnectionTimings
instance.Sets the time when the client ended to resolve a domain name.Sets the time when the client ended to wait for an existing connection attempt in order to use one connection for HTTP/2.Sets the time when the client started to wait for the completion of an existing connection attempt in order to use one connection for HTTP/2.Sets the time when the client ended to connect to a remote peer.Sets the time when the client started to connect to a remote peer.
-
Method Details
-
dnsResolutionEnd
Sets the time when the client ended to resolve a domain name. If this method is invoked, the creation time of thisClientConnectionTimingsBuilder
is considered as the start time of resolving a domain name. -
socketConnectStart
Sets the time when the client started to connect to a remote peer. -
socketConnectEnd
Sets the time when the client ended to connect to a remote peer.- Throws:
IllegalStateException
- ifsocketConnectStart()
is not invoked before calling this.
-
pendingAcquisitionStart
Sets the time when the client started to wait for the completion of an existing connection attempt in order to use one connection for HTTP/2. -
pendingAcquisitionEnd
Sets the time when the client ended to wait for an existing connection attempt in order to use one connection for HTTP/2.- Throws:
IllegalStateException
- ifpendingAcquisitionStart()
is not invoked before calling this.
-
build
Returns a newly-createdClientConnectionTimings
instance.
-