Upload operation replay records asynchronously.
When an application calls submitPending on an MBO on which a create, update, or delete operation is performed, an operation replay record is created on the device local database.
When synchronize is called, the operation replay records are uploaded to the server. The method returns without waiting for the backend to replay those records. The synchronize method downloads all the latest data changes and the results of the previously uploaded operation replay records that the backend has finished replaying in the background. If you choose to disable asynchronous operation replay, each synchronize call will wait for the backend to finish replaying all the current uploaded operation replay records.
[[SUP101SUP101DB getSynchronizationProfile] setAsyncReplay:NO];
+ (void)beginSynchronize:(SUPObjectList*)synchronizationGroups withContext:(NSString*)context withUploadOnly:(BOOL) uploadOnly
public class MyCallbackHandler extends DefaultCallbackHandler { public int onSynchronize(ObjectList groups, SynchronizationContext context) { switch(context.getStatus()) { case SynchronizationStatus.ASYNC_REPLAY_UPLOADED: LogMessage("AsyncReplay uploaded"); break; case SynchronizationStatus.ASYNC_REPLAY_COMPLETED: [SUP101SUP101DB synchronize:@"default"]; LogMessage("AsyncReplay Done"); break; default: break; } return SynchronizationAction.CONTINUE; } }