Package io.objectbox.sync
Class SyncHybridBuilder
- java.lang.Object
-
- io.objectbox.sync.SyncHybridBuilder
-
public final class SyncHybridBuilder extends java.lang.ObjectBuilder for a Sync client and server hybrid setup, aSyncHybrid.To change the server/cluster configuration, call
serverBuilder(), and for the client configurationclientBuilder().
-
-
Field Summary
Fields Modifier and Type Field Description private BoxStoreboxStoreprivate BoxStoreboxStoreServerprivate SyncBuilderclientBuilderprivate SyncServerBuilderserverBuilder
-
Constructor Summary
Constructors Constructor Description SyncHybridBuilder(BoxStoreBuilder storeBuilder, java.lang.String url, SyncCredentials authenticatorCredentials)Internal API; useSync.hybrid(BoxStoreBuilder, String, SyncCredentials)instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncHybridbuildAndStart()Builds, starts and returns the hybrid.SyncBuilderclientBuilder()Returns the builder of the client of the hybrid for additional configuration.SyncServerBuilderserverBuilder()Returns the builder of the server of the hybrid for additional configuration.
-
-
-
Field Detail
-
boxStore
private final BoxStore boxStore
-
boxStoreServer
private final BoxStore boxStoreServer
-
clientBuilder
private final SyncBuilder clientBuilder
-
serverBuilder
private final SyncServerBuilder serverBuilder
-
-
Constructor Detail
-
SyncHybridBuilder
@Internal SyncHybridBuilder(BoxStoreBuilder storeBuilder, java.lang.String url, SyncCredentials authenticatorCredentials)
Internal API; useSync.hybrid(BoxStoreBuilder, String, SyncCredentials)instead.
-
-
Method Detail
-
clientBuilder
public SyncBuilder clientBuilder()
Returns the builder of the client of the hybrid for additional configuration.
-
serverBuilder
public SyncServerBuilder serverBuilder()
Returns the builder of the server of the hybrid for additional configuration.
-
buildAndStart
public SyncHybrid buildAndStart()
Builds, starts and returns the hybrid.Ensures the correct order of starting the server and client.
-
-