Package io.deephaven.kv.common
Class ParsableGetRequest<Response>
java.lang.Object
io.deephaven.kv.common.ParsableGetRequest<Response>
- All Implemented Interfaces:
ParsableRequest<Get,Response>
An implementation of
ParsableGetRequest based on an GetResponseParser.-
Method Summary
Modifier and TypeMethodDescriptionbooleanShould only be called afterParsableRequest.hasResponse()is true.static <Response> ParsableGetRequest<Response>prefix(KeyPath path, long modRev, Function<GetResponse, Response> decoder) static <Response> ParsableGetRequest<Response>prefix(KeyPath path, Function<GetResponse, Response> decoder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.kv.common.ParsableRequest
proxyTo
-
Method Details
-
prefix
public static <Response> ParsableGetRequest<Response> prefix(KeyPath path, Function<GetResponse, Response> decoder) -
prefix
public static <Response> ParsableGetRequest<Response> prefix(KeyPath path, long modRev, Function<GetResponse, Response> decoder) -
getRequest
- Specified by:
getRequestin interfaceParsableRequest<Get,Response>
-
hasResponse
public boolean hasResponse()Description copied from interface:ParsableRequest- Specified by:
hasResponsein interfaceParsableRequest<Get,Response> - Returns:
- true iff the response has been set
-
parseResponse
Description copied from interface:ParsableRequestShould only be called afterParsableRequest.hasResponse()is true.- Specified by:
parseResponsein interfaceParsableRequest<Get,Response> - Returns:
- the parsed response
-