Package com.aoindustries.aoserv.client
Class AoservConnector.UpdateRequestInvalidating
java.lang.Object
com.aoindustries.aoserv.client.AoservConnector.UpdateRequestInvalidating
- All Implemented Interfaces:
AoservConnector.UpdateRequest
- Enclosing class:
AoservConnector
public abstract static class AoservConnector.UpdateRequestInvalidating
extends Object
implements AoservConnector.UpdateRequest
An update request with a returned invalidation list.
-
Constructor Summary
ModifierConstructorDescriptionprotected
UpdateRequestInvalidating
(AoservConnector connector) protected
UpdateRequestInvalidating
(AoservTable<?, ?> table) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoindustries.aoserv.client.AoservConnector.UpdateRequest
writeRequest
-
Constructor Details
-
UpdateRequestInvalidating
-
UpdateRequestInvalidating
-
-
Method Details
-
readResponse
Reads the response from the server if the request was successfully sent.Reads the response code. If code is
AoservProtocol.DONE
, reads the invalidation list. On any other code, checks the result then falls-back to throwingIOException
.- Specified by:
readResponse
in interfaceAoservConnector.UpdateRequest
- Throws:
IOException
SQLException
-
afterRelease
public void afterRelease()If both the request and response were successful, this is called after the connection to the server is released.Calls
AoservConnector.tablesUpdated(com.aoapps.collections.IntList)
with the invalidation list.- Specified by:
afterRelease
in interfaceAoservConnector.UpdateRequest
-