Package com.aoindustries.aoserv.client
Interface AOServConnector.ResultRequest<T>
-
- Enclosing class:
- AOServConnector
public static interface AOServConnector.ResultRequest<T>This is the preferred mechanism for providing custom requests that have a return value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TafterRelease()If both the request and response were successful, this is called after the connection to the server is released.voidreadResponse(StreamableInput in)Reads the response from the server if the request was successfully sent.voidwriteRequest(StreamableOutput out)Writes the request to the server.
-
-
-
Method Detail
-
writeRequest
void writeRequest(StreamableOutput out) throws IOException
Writes the request to the server. This does not need to flush the output stream.- Throws:
IOException
-
readResponse
void readResponse(StreamableInput in) throws IOException, SQLException
Reads the response from the server if the request was successfully sent.- Throws:
IOExceptionSQLException
-
afterRelease
T afterRelease()
If both the request and response were successful, this is called after the connection to the server is released. The result is returned here so any additional processing in packaging the result may be performed after the connection is released.
-
-