Skip to content

Commit b5734e2

Browse files
Align APIs: nativeTriggerReconnect returns [void -> boolean].
1 parent 72928f3 commit b5734e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,11 @@ public void notifyConnectionAvailable() {
263263
/** (Optional) Pause sync updates. */
264264
private native void nativeCancelUpdates(long handle);
265265

266-
/** Hints to the native client that an active network connection is available. */
267-
private native void nativeTriggerReconnect(long handle);
266+
/**
267+
* Hints to the native client that an active network connection is available.
268+
* Returns true if the native client was disconnected (and will try to re-connect).
269+
*/
270+
private native boolean nativeTriggerReconnect(long handle);
268271

269272
/**
270273
* Methods on this class must match those expected by JNI implementation.

0 commit comments

Comments
 (0)