Package com.ocient.jdbc
Interface XGConnection.ResponseHandler<Response>
- Type Parameters:
Response- the type of response returned by the handler
- Enclosing class:
XGConnection
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A response handler for wire messages.
TODO this interface should include a handler for SQL warnings
-
Method Summary
Modifier and TypeMethodDescriptionhandleResponse(io.netty.buffer.ByteBuf response) Handles a response message received from the remote server and returns a parsed response object.
-
Method Details
-
handleResponse
Handles a response message received from the remote server and returns a parsed response object.- Parameters:
response- the response message received from the server, serialized in a NettyByteBuf- Returns:
- the parsed response object
- Throws:
SQLException- if an error occurs during the response handling processIOException
-