Package io.objectbox.sync
Class SyncHybridBuilder
java.lang.Object
io.objectbox.sync.SyncHybridBuilder
Builder for a Sync client and server hybrid setup, a
SyncHybrid.
To change the server/cluster configuration, call serverBuilder(), and for the client configuration
clientBuilder().
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BoxStoreprivate final BoxStoreprivate final SyncBuilderprivate final SyncServerBuilder -
Constructor Summary
ConstructorsConstructorDescriptionSyncHybridBuilder(BoxStoreBuilder storeBuilder, String url, SyncCredentials authenticatorCredentials) Internal API; useSync.hybrid(BoxStoreBuilder, String, SyncCredentials)instead. -
Method Summary
Modifier and TypeMethodDescriptionBuilds, starts and returns the hybrid.Returns the builder of the client of the hybrid for additional configuration.Returns the builder of the server of the hybrid for additional configuration.
-
Field Details
-
boxStore
-
boxStoreServer
-
clientBuilder
-
serverBuilder
-
-
Constructor Details
-
SyncHybridBuilder
@Internal SyncHybridBuilder(BoxStoreBuilder storeBuilder, String url, SyncCredentials authenticatorCredentials) Internal API; useSync.hybrid(BoxStoreBuilder, String, SyncCredentials)instead.
-
-
Method Details
-
clientBuilder
Returns the builder of the client of the hybrid for additional configuration. -
serverBuilder
Returns the builder of the server of the hybrid for additional configuration. -
buildAndStart
Builds, starts and returns the hybrid.Ensures the correct order of starting the server and client.
-