Skip to content

Commit d70b567

Browse files
committed
Fix after rebasing
1 parent f2f4a75 commit d70b567

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

objectbox-java/src/main/java/io/objectbox/sync/SyncClient.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
package io.objectbox.sync;
22

3+
import java.io.Closeable;
4+
5+
import javax.annotation.Nullable;
6+
37
import io.objectbox.annotation.apihint.Experimental;
4-
import io.objectbox.annotation.apihint.Temporary;
58
import io.objectbox.sync.SyncBuilder.RequestUpdatesMode;
69
import io.objectbox.sync.listener.SyncChangeListener;
710
import io.objectbox.sync.listener.SyncCompletedListener;
811
import io.objectbox.sync.listener.SyncConnectionListener;
912
import io.objectbox.sync.listener.SyncListener;
1013
import io.objectbox.sync.listener.SyncLoginListener;
1114

12-
import java.io.Closeable;
13-
14-
import javax.annotation.Nullable;
15-
1615
/**
1716
* ObjectBox sync client. Build a client with {@link Sync#client}.
1817
*
@@ -143,11 +142,14 @@ public interface SyncClient extends Closeable {
143142
/**
144143
* Experimental. This API might change or be removed in the future.
145144
* <p>
145+
* Temporary only, try not to use it.
146+
* <p>
146147
* Request a sync of all previous changes from the server.
148+
*
147149
* @return 'true' if the request was likely sent (e.g. the sync client is in "logged in" state)
148-
* or 'false' if the request was not sent (and will not be sent in the future)
150+
* or 'false' if the request was not sent (and will not be sent in the future).
149151
*/
150-
@Temporary
152+
@Experimental
151153
boolean requestFullSync();
152154

153155
/**

objectbox-java/src/main/java/io/objectbox/sync/SyncClientImpl.java

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
package io.objectbox.sync;
22

3+
import java.util.concurrent.CountDownLatch;
4+
import java.util.concurrent.TimeUnit;
5+
6+
import javax.annotation.Nullable;
7+
38
import io.objectbox.BoxStore;
49
import io.objectbox.InternalAccess;
10+
import io.objectbox.annotation.apihint.Experimental;
511
import io.objectbox.annotation.apihint.Internal;
6-
import io.objectbox.annotation.apihint.Temporary;
712
import io.objectbox.sync.SyncBuilder.RequestUpdatesMode;
813
import io.objectbox.sync.listener.SyncChangeListener;
914
import io.objectbox.sync.listener.SyncCompletedListener;
1015
import io.objectbox.sync.listener.SyncConnectionListener;
1116
import io.objectbox.sync.listener.SyncListener;
1217
import io.objectbox.sync.listener.SyncLoginListener;
1318

14-
import javax.annotation.Nullable;
15-
import java.util.concurrent.CountDownLatch;
16-
import java.util.concurrent.TimeUnit;
17-
1819
/**
1920
* Internal sync client implementation. Use {@link SyncClient} to access functionality,
2021
* this class may change without notice.
@@ -209,14 +210,19 @@ protected void finalize() throws Throwable {
209210
super.finalize();
210211
}
211212

213+
/**
214+
* Temporary only, try not to use it.
215+
*/
212216
@Override
213-
@Temporary
217+
@Experimental
214218
public boolean requestFullSync() {
215219
return nativeRequestFullSync(handle, false);
216220
}
217221

218-
// TODO: broken?
219-
@Temporary
222+
/**
223+
* Temporary only, try not to use it.
224+
*/
225+
@Experimental
220226
public boolean requestFullSyncAndUpdates() {
221227
return nativeRequestFullSync(handle, true);
222228
}

0 commit comments

Comments
 (0)