cancel
Showing results for 
Search instead for 
Did you mean: 

UltraliteJ - Stop a synchronization

Former Member
3,002

What is the best way to stop the execution of a synchronization?

I'm using ultraliteJ version 12.0.1 last ebf.

tks

Accepted Solutions (1)

Accepted Solutions (1)

You can return true from a SyncObserver to cancel the sync.

See http://dcx.sybase.com/index.html#1201/en/ulj/ulj-api-syncobserver-int.html for an example SyncObserver.

Former Member
0 Kudos

If the 'SyncObserver' returns true, a rollback will be executed on the db?

0 Kudos

Basically. If you have restartable downloads turned off (which is the default), then whatever partial download got received is rolled back. If restartable downloads are turned on, then there is a commit to store any partial download, though I don't think the incomplete download is visible in any way to your application.

UltraLite will keep the database in a consistent state even if the sync fails or is canceled.

Former Member
0 Kudos

With restartable downloads, a partial download is not committed. For UltraLite (including UltraLiteJ for Android) it is up to your application to resume the download or roll back the partial download. For details, see the documentation.

Answers (0)