GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sync: add isServerAvailable. · TinyAndNeo/objectbox-java@172aa7e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • objectbox-java/src/main/java/io/objectbox/sync
    • Sync.java
  • tests/objectbox-java-test/src/test/java/io/objectbox/sync
    • SyncTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎objectbox-java/src/main/java/io/objectbox/sync/Sync.java‎

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/sync/Sync.java
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ public static boolean isAvailable() {
1919
return BoxStore.isSyncAvailable();
2020
}
2121

22+
/**
23+
* Returns true if the included native (JNI) ObjectBox library supports Sync server.
24+
*/
25+
public static boolean isServerAvailable() {
26+
return BoxStore.isSyncServerAvailable();
27+
}
28+
2229
/**
2330
* Start building a sync client. Requires the BoxStore that should be synced with the server,
2431
* the URL and port of the server to connect to and credentials to authenticate against the server.
Collapse file

‎tests/objectbox-java-test/src/test/java/io/objectbox/sync/SyncTest.java‎

Copy file name to clipboardExpand all lines: tests/objectbox-java-test/src/test/java/io/objectbox/sync/SyncTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void clientIsNotAvailable() {
2929
*/
3030
@Test
3131
public void serverIsNotAvailable() {
32-
assertFalse(BoxStore.isSyncServerAvailable());
32+
assertFalse(Sync.isServerAvailable());
3333
}
3434

3535
@Test

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.