Synchronization can include sending feature edits made locally and retrieving feature edits made on the server,
this can be controlled by setting the
Only changes are sent/received during the synchronization process to ensure only the minimum required data is transferred.
A SyncGeodatabaseJob instance is returned by
The Job is returned in a
Job.Status.NOT_STARTED state and
Job.start() must be called to start the
Job class for full information on how to work with jobs.
- See Also:
Nested Class Summary
Methods inherited from class com.esri.arcgisruntime.concurrent.Job
addJobDoneListener, addJobMessageAddedListener, addProgressChangedListener, addStatusChangedListener, cancelAsync, fromJson, getCredential, getError, getMessages, getProgress, getRequestConfiguration, getServerJobId, getStatus, getUnknownJson, getUnsupportedJson, getUri, pause, removeJobDoneListener, removeJobMessageAddedListener, removeProgressChangedListener, removeStatusChangedListener, setCredential, setRequestConfiguration, start, toJson
getGeodatabaseDeltaInfopublic GeodatabaseDeltaInfo getGeodatabaseDeltaInfo()Gets information on geodatabase upload and download delta files.
SyncGeodatabaseParameters.isKeepGeodatabaseDeltas()is set to true, this property provides information about the synced geodatabase along with the paths to its uploaded and downloaded deltas.
Delta geodatabases allow you to troubleshoot sync problems - for example by inspecting the changes they contain or sending the file to the system administrator for the feature service.
This property will be set even if the job fails. If
SyncGeodatabaseParameters.isKeepGeodatabaseDeltas()is false, this property will be null.
- an unmodifiable list containing information on geodatabase upload and download delta files, or null if none
getResultFor a successfully completed job, the result returns a list of
SyncLayerResult. Typically, when all features are synced successfully, this is an empty list.
If individual edits failed, then the result list provides these errors grouped by each table, using
SyncLayerResultinstances. These in turn contain each edit error. Only errors are reported; the feature edit results do not contain information about successful adds, deletes, or updates.