Package io.objectbox.sync
Class SyncHybridBuilder
- java.lang.Object
-
- io.objectbox.sync.SyncHybridBuilder
-
public final class SyncHybridBuilder extends java.lang.Object
Builder for a Sync client and server hybrid setup, aSyncHybrid
.To change the server/cluster configuration, call
serverBuilder()
, and for the client configurationclientBuilder()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncHybrid
buildAndStart()
Builds, starts and returns the hybrid.SyncBuilder
clientBuilder()
Returns the builder of the client of the hybrid for additional configuration.SyncServerBuilder
serverBuilder()
Returns the builder of the server of the hybrid for additional configuration.
-
-
-
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.
-
-