2323
2424/**
2525 * <a href="https://objectbox.io/sync/">ObjectBox Sync</a> makes data available on other devices.
26- * Start building a sync client using Sync.{@link #client(BoxStore, String, SyncCredentials)}
27- * or an embedded server using Sync.{@link #server(BoxStore, String, SyncCredentials)} .
26+ * <p>
27+ * Use the static methods to build a Sync client or embedded server .
2828 */
2929@ SuppressWarnings ({"unused" , "WeakerAccess" })
3030public final class Sync {
@@ -51,8 +51,13 @@ public static boolean isHybridAvailable() {
5151 }
5252
5353 /**
54- * Start building a sync client. Requires the BoxStore that should be synced with the server,
55- * the URL and port of the server to connect to and credentials to authenticate against the server.
54+ * Starts building a {@link SyncClient}. Once done, complete with {@link SyncBuilder#build() build()}.
55+ *
56+ * @param boxStore The {@link BoxStore} the client should use.
57+ * @param url The URL of the Sync server on which the Sync protocol is exposed. This is typically a WebSockets URL
58+ * starting with {@code ws://} or {@code wss://} (for encrypted connections), for example
59+ * {@code ws://127.0.0.1:9999}.
60+ * @param credentials {@link SyncCredentials} to authenticate with the server.
5661 */
5762 public static SyncBuilder client (BoxStore boxStore , String url , SyncCredentials credentials ) {
5863 return new SyncBuilder (boxStore , url , credentials );
@@ -67,8 +72,8 @@ public static SyncBuilder client(BoxStore boxStore, String url, SyncCredentials
6772 * @param url The URL of the Sync server on which the Sync protocol is exposed. This is typically a WebSockets URL
6873 * starting with {@code ws://} or {@code wss://} (for encrypted connections), for example
6974 * {@code ws://0.0.0.0:9999}.
70- * @param authenticatorCredentials A list of enabled authentication methods available to Sync clients. Additional
71- * authenticator credentials can be supplied using the builder. For the embedded server, currently only
75+ * @param authenticatorCredentials An authentication method available to Sync clients and peers . Additional
76+ * authenticator credentials can be supplied using the returned builder. For the embedded server, currently only
7277 * {@link SyncCredentials#sharedSecret} and {@link SyncCredentials#none} are supported.
7378 */
7479 public static SyncServerBuilder server (BoxStore boxStore , String url , SyncCredentials authenticatorCredentials ) {
0 commit comments