Class SyncHybridBuilder

java.lang.Object
io.objectbox.sync.SyncHybridBuilder

public final class SyncHybridBuilder extends Object
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().

  • Method Details

    • 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.