Package com.fauna.response
Class QueryResponse
- java.lang.Object
-
- com.fauna.response.QueryResponse
-
- Direct Known Subclasses:
QueryFailure
,QuerySuccess
public abstract class QueryResponse extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
getLastSeenTxn()
java.util.Map<java.lang.String,java.lang.String>
getQueryTags()
java.lang.Long
getSchemaVersion()
QueryStats
getStats()
java.lang.String
getSummary()
static <T> QuerySuccess<T>
handleResponse(java.net.http.HttpResponse<java.lang.String> response, Codec<T> codec)
Handle a HTTPResponse and return a QuerySuccess, or throw a FaunaException.
-
-
-
Method Detail
-
handleResponse
public static <T> QuerySuccess<T> handleResponse(java.net.http.HttpResponse<java.lang.String> response, Codec<T> codec) throws FaunaException
Handle a HTTPResponse and return a QuerySuccess, or throw a FaunaException.- Parameters:
response
- The HTTPResponse object.- Returns:
- A successful response from Fauna.
- Throws:
FaunaException
-
getLastSeenTxn
public java.lang.Long getLastSeenTxn()
-
getSchemaVersion
public java.lang.Long getSchemaVersion()
-
getSummary
public java.lang.String getSummary()
-
getQueryTags
public java.util.Map<java.lang.String,java.lang.String> getQueryTags()
-
getStats
public QueryStats getStats()
-
-