public interface DescriptorRequest
When the DescriptorDownloader
downloads descriptors from
directory authorities or mirrors it provides an iterator over these
containers which in turn contain references to classes implementing the
Descriptor
interface. This container also stores potentially
useful meta-data about the descriptor request.
Modifier and Type | Method and Description |
---|---|
boolean |
connectTimeoutHasExpired()
Return whether this request ended, because the connect timeout has
expired.
|
java.util.List<Descriptor> |
getDescriptors()
Return the descriptors contained in the reply.
|
java.lang.String |
getDirectoryNickname()
Return the nickname of the directory mirror or authority as
previously configured.
|
java.lang.Exception |
getException()
Return the first exception that was thrown when making this request
or parsing the response, or null if no exception was thrown.
|
long |
getRequestEnd()
Return the time in milliseconds since the epoch when this request
ended.
|
long |
getRequestStart()
Return the time in milliseconds since the epoch when this request
was started.
|
java.lang.String |
getRequestUrl()
Return the request URL that was used in this request.
|
int |
getResponseCode()
Return the response code that the directory mirror or authority
returned.
|
boolean |
globalTimeoutHasExpired()
Return whether this request ended, because the global timeout for
all requests has expired.
|
boolean |
readTimeoutHasExpired()
Return whether this request ended, because the read timeout has
expired.
|
java.lang.String getRequestUrl()
java.lang.String getDirectoryNickname()
java.lang.Exception getException()
int getResponseCode()
long getRequestStart()
long getRequestEnd()
boolean connectTimeoutHasExpired()
boolean readTimeoutHasExpired()
boolean globalTimeoutHasExpired()
java.util.List<Descriptor> getDescriptors()