Interface DataRetrievalResponse<T>

  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns a short description of the error if available, or empty otherwise.
    default Integer
    Returns the HTTP status code if the response resulted in an error, or empty otherwise.
    Returns the federation member where this response comes from.
    Returns the request that has been issued to obtain this response.
    default Duration
    Returns the total duration between request start and request end.
    Returns the time at which the corresponding data retrieval request (see getRequest()) was started.
    Returns the data retrieved in response to the corresponding request, or throws UnsupportedOperationDueToRetrievalError if an error occurred during data retrieval.
    Returns the time at which the retrieval of this response was completed.
    default boolean
    Indicates whether an error occurred during data retrieval.
  • Method Details

    • getFederationMember

      FederationMember getFederationMember()
      Returns the federation member where this response comes from.
    • getRequest

      DataRetrievalRequest getRequest()
      Returns the request that has been issued to obtain this response.
    • getRequestStartTime

      Date getRequestStartTime()
      Returns the time at which the corresponding data retrieval request (see getRequest()) was started.
    • getRetrievalEndTime

      Date getRetrievalEndTime()
      Returns the time at which the retrieval of this response was completed.
    • getRequestDuration

      default Duration getRequestDuration()
      Returns the total duration between request start and request end.
    • isError

      default boolean isError()
      Indicates whether an error occurred during data retrieval.
    • getResponseData

      T getResponseData() throws UnsupportedOperationDueToRetrievalError
      Returns the data retrieved in response to the corresponding request, or throws UnsupportedOperationDueToRetrievalError if an error occurred during data retrieval.
      Throws:
      UnsupportedOperationDueToRetrievalError
    • getErrorStatusCode

      default Integer getErrorStatusCode()
      Returns the HTTP status code if the response resulted in an error, or empty otherwise.
    • getErrorDescription

      default String getErrorDescription()
      Returns a short description of the error if available, or empty otherwise.