Interface DataRetrievalResponse<T>
- All Known Subinterfaces:
CardinalityResponse
,JSONResponse
,RecordsResponse
,SolMapsResponse
,StringResponse
,TPFResponse
,TriplesResponse
- All Known Implementing Classes:
CachedCardinalityResponseImpl
,CardinalityResponseImpl
,CardinalityResponseImplWithoutCardinality
,DataRetrievalResponseBase
,JSONResponseImpl
,RecordsResponseImpl
,SolMapsResponseImpl
,StringResponseImpl
,TPFResponseImpl
,TriplesResponseImpl
public interface DataRetrievalResponse<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 (seegetRequest()
) 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
isError()
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 (seegetRequest()
) was started. -
getRetrievalEndTime
Date getRetrievalEndTime()Returns the time at which the retrieval of this response was completed. -
getRequestDuration
Returns the total duration between request start and request end. -
isError
default boolean isError()Indicates whether an error occurred during data retrieval. -
getResponseData
Returns the data retrieved in response to the corresponding request, or throws UnsupportedOperationDueToRetrievalError if an error occurred during data retrieval. -
getErrorStatusCode
Returns the HTTP status code if the response resulted in an error, or empty otherwise. -
getErrorDescription
Returns a short description of the error if available, or empty otherwise.
-