public static final class HttpFetcherRequest.Diagnostics extends Object
Modifier and Type | Method and Description |
---|---|
Long |
getAcknowledge()
Get the acknowledge time of the request.
|
Long |
getComplete()
Get the complete time of the request.
|
Long |
getLatency()
Get the latency between sending of the request and the first
response.
|
Integer |
getSize()
Get the size the response.
|
Double |
getSpeed()
Get download speed in bytes per second.
|
Long |
getStart()
Get the start time of the request.
|
boolean |
isAcknowledged()
Check if request has been started and acknowledged.
|
boolean |
isCompleted()
Check if request has been started, acknowledged and completed.
|
boolean |
isStarted()
Check if request has been started.
|
void |
setAcknowledge()
Set the acknowledge time to current nano time.
|
void |
setComplete()
Set the complete time to current nano time.
|
void |
setSize(int size)
Set the size of the response in bytes.
|
void |
setStart()
Set the start time to current nano time.
|
public void setStart()
public void setAcknowledge()
public void setComplete()
@Nullable public Long getStart()
@Nullable public Long getAcknowledge()
@Nullable public Long getComplete()
@Nullable public Integer getSize()
public void setSize(int size)
size
- Size of the response.@Nullable public Long getLatency()
isAcknowledged()
is false.@Nullable public Double getSpeed()
isCompleted()
is false.public boolean isStarted()
public boolean isAcknowledged()
public boolean isCompleted()
Copyright © 2019. All rights reserved.