public final class SyncGeodatabaseJob extends JobA Job that synchronizes changes between a local geodatabase and an ArcGIS feature service.
Synchronization can include sending feature edits made locally and retrieving feature edits made on the server, this can be controlled by setting the
SyncGeodatabaseParameters.SyncDirection. Only changes are sent/received during the synchronization process to ensure only the minimum required data is transferred.
A SyncGeodatabaseJob instance is returned by
GeodatabaseSyncTask.syncGeodatabase(SyncGeodatabaseParameters, Geodatabase). The Job is returned in a
Job.start()must be called to start the associated operation.
Jobclass for full information on how to work with jobs.
- See Also:
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getResult()Returns an unmodifiable list of SyncLayerResult objects once the job has completed successfully.
Methods inherited from class com.esri.arcgisruntime.concurrent.Job
addJobChangedListener, addJobDoneListener, addProgressChangedListener, cancel, fromJson, getCredential, getError, getMessages, getProgress, getRequestConfiguration, getServerJobId, getStatus, getUnknownJson, getUnsupportedJson, getUri, pause, removeJobChangedListener, removeJobDoneListener, removeProgressChangedListener, setCredential, setRequestConfiguration, setUri, start, toJson
public List<SyncLayerResult> getResult()Returns an unmodifiable list of SyncLayerResult objects once the job has completed successfully.
Typically, when all features are synced successfully, this is an empty list. If individual edits failed, then the list contains SyncLayerResult instances which indicate the edit errors. Errors are grouped by the tables they apply to. Only errors are reported; the results do not contain information about successful adds, deletes, or updates.