Package tripleplay.syncdb
Class Protocol.Response
java.lang.Object
tripleplay.syncdb.Protocol.Response
- Enclosing class:
Protocol
Encapsualtes a response from the server.
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
Whether the client's submitted deltas were applied cleanly to the server.Deltas the client needs to apply to sync with the latest server version.final int
The version ofProtocol
in use by the client.final int
The latest server version. -
Constructor Summary
-
Method Summary
-
Field Details
-
protocolVersion
public final int protocolVersionThe version ofProtocol
in use by the client. -
version
public final int versionThe latest server version. -
delta
Deltas the client needs to apply to sync with the latest server version. -
cleanSync
public final boolean cleanSyncWhether the client's submitted deltas were applied cleanly to the server. If false, the client's submitted delta was not applied at all to the server and should be resubmitted after the client applies the server deltas.
-
-
Constructor Details
-
Response
public Response(int version) Creates a response that represents a clean sync. -
Response
Creates a (non-clean-sync) response with the supplied version and delta.
-