Package io.deephaven.kv.common
Interface GetResponseParser<X>
- Type Parameters:
X- the object to parse
- All Superinterfaces:
Context,KeyPathContext,KeyValuesCollectionParser<X>
- All Known Implementing Classes:
EnumContext,InstantContext,KeyPathPrefixContext,KeyPathSimpleValue,ModContext,OptionalLongContext,RawValueContext,StringContext,UpdateCountContext
An interface for parsing
GetResponses. (todo: documentation around exceptional cases)-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcheckContext(GetResponse response) The context where the parser will look for data in the responsedefault Xparse(GetResponse response) The response's request path must be equal to our own context's path.Methods inherited from interface io.deephaven.kv.KeyPathContext
getDescription, getPath, resolveMethods inherited from interface io.deephaven.kv.KeyValuesCollectionParser
parse
-
Method Details
-
parse
The response's request path must be equal to our own context's path.Implementations should call
checkContext(GetResponse)- Parameters:
response- the get response- Returns:
- the parsed value
-
getContext
KeyPathContext getContext()The context where the parser will look for data in the response -
checkContext
-