Interface AoservConnector.UpdateRequest

All Known Implementing Classes:
AoservConnector.UpdateRequestInvalidating
Enclosing class:
AoservConnector

public static interface AoservConnector.UpdateRequest
This is the preferred mechanism for providing custom requests.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    If both the request and response were successful, this is called after the connection to the server is released.
    void
    Reads the response from the server if the request was successfully sent.
    void
    Writes the request to the server.
  • Method Details

    • 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:
      IOException
      SQLException
    • afterRelease

      void afterRelease()
      If both the request and response were successful, this is called after the connection to the server is released.