|
17 | 17 | package io.objectbox.sync; |
18 | 18 |
|
19 | 19 | import io.objectbox.BoxStore; |
| 20 | +import io.objectbox.sync.server.SyncServer; |
20 | 21 | import io.objectbox.sync.server.SyncServerBuilder; |
21 | 22 |
|
22 | 23 | /** |
@@ -50,12 +51,15 @@ public static SyncBuilder client(BoxStore boxStore, String url, SyncCredentials |
50 | 51 | } |
51 | 52 |
|
52 | 53 | /** |
53 | | - * Start building a sync server. Requires the BoxStore the server should use, |
54 | | - * the URL and port the server should bind to and authenticator credentials to authenticate clients. |
55 | | - * Additional authenticator credentials can be supplied using the builder. |
56 | | - * <p> |
57 | | - * For the embedded server, currently only {@link SyncCredentials#sharedSecret} and {@link SyncCredentials#none} |
58 | | - * are supported. |
| 54 | + * Starts building a {@link SyncServer}. Once done, complete with {@link SyncServerBuilder#build() build()}. |
| 55 | + * |
| 56 | + * @param boxStore The {@link BoxStore} the server 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://0.0.0.0:9999}. |
| 60 | + * @param authenticatorCredentials A list of enabled authentication methods available to Sync clients. Additional |
| 61 | + * authenticator credentials can be supplied using the builder. For the embedded server, currently only |
| 62 | + * {@link SyncCredentials#sharedSecret} and {@link SyncCredentials#none} are supported. |
59 | 63 | */ |
60 | 64 | public static SyncServerBuilder server(BoxStore boxStore, String url, SyncCredentials authenticatorCredentials) { |
61 | 65 | return new SyncServerBuilder(boxStore, url, authenticatorCredentials); |
|
0 commit comments