Package com.fauna.response
Class QuerySuccess<T>
- java.lang.Object
-
- com.fauna.response.QueryResponse
-
- com.fauna.response.QuerySuccess<T>
-
public final class QuerySuccess<T> extends QueryResponse
-
-
Constructor Summary
Constructors Constructor Description QuerySuccess(Codec<T> codec, QueryResponseWire response)
Initializes a new instance of theQuerySuccess
class, decoding the query response into the specified type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getData()
java.util.Optional<java.lang.String>
getStaticType()
-
Methods inherited from class com.fauna.response.QueryResponse
getLastSeenTxn, getQueryTags, getSchemaVersion, getStats, getSummary, handleResponse
-
-
-
-
Constructor Detail
-
QuerySuccess
public QuerySuccess(Codec<T> codec, QueryResponseWire response)
Initializes a new instance of theQuerySuccess
class, decoding the query response into the specified type.- Parameters:
codec
- A codec for the response data type.response
- The parsed response.
-
-
Method Detail
-
getData
public T getData()
-
getStaticType
public java.util.Optional<java.lang.String> getStaticType()
-
-