Class SyncServerBuilder

  • @Experimental
    public class SyncServerBuilder
    extends java.lang.Object
    Creates a SyncServer and allows to set additional configuration.
    • Constructor Detail

      • SyncServerBuilder

        public SyncServerBuilder​(BoxStore boxStore,
                                 java.lang.String url,
                                 SyncCredentials authenticatorCredentials)
    • Method Detail

      • certificatePath

        public SyncServerBuilder certificatePath​(java.lang.String certificatePath)
      • authenticatorCredentials

        public SyncServerBuilder authenticatorCredentials​(SyncCredentials authenticatorCredentials)
        Adds additional authenticator credentials to authenticate clients with.
      • peer

        public SyncServerBuilder peer​(java.lang.String url,
                                      SyncCredentials credentials)
        Adds a server peer, to which this server should connect to as a client using the given credentials.
      • build

        public SyncServer build()
        Builds and returns a Sync server ready to SyncServer.start(). Note: this clears all previously set authenticator credentials.
      • buildAndStart

        public SyncServer buildAndStart()
        Builds, starts and returns a Sync server.