Interface ServerConfiguration.Builder<B extends ServerConfiguration.Builder<B>>

Type Parameters:
B - the builder type
All Known Subinterfaces:
EntityServerConfiguration.Builder
Enclosing interface:
ServerConfiguration

public static interface ServerConfiguration.Builder<B extends ServerConfiguration.Builder<B>>
A Builder for ServerConfiguration
  • Method Details

    • adminPort

      B adminPort(int adminPort)
      Parameters:
      adminPort - the port on which to make the server admin interface accessible
      Returns:
      this builder instance
    • serverName

      B serverName(Supplier<String> serverNameSupplier)
      Parameters:
      serverNameSupplier - the server name supplier
      Returns:
      this builder instance
    • serverName

      B serverName(String serverName)
      Parameters:
      serverName - the server name
      Returns:
      this builder instance
    • auxiliaryServerFactoryClassNames

      B auxiliaryServerFactoryClassNames(Collection<String> auxiliaryServerFactoryClassNames)
      Parameters:
      auxiliaryServerFactoryClassNames - the class names of auxiliary server factories, providing the servers to run alongside this server
      Returns:
      this builder instance
    • sslEnabled

      B sslEnabled(boolean sslEnabled)
      When set to true this also sets the rmi client/server socket factories.
      Parameters:
      sslEnabled - if true then ssl is enabled
      Returns:
      this builder instance
      See Also:
    • rmiClientSocketFactory

      B rmiClientSocketFactory(RMIClientSocketFactory rmiClientSocketFactory)
      Parameters:
      rmiClientSocketFactory - the rmi client socket factory to use
      Returns:
      this builder instance
    • rmiServerSocketFactory

      B rmiServerSocketFactory(RMIServerSocketFactory rmiServerSocketFactory)
      Parameters:
      rmiServerSocketFactory - the rmi server socket factory to use
      Returns:
      this builder instance
    • objectInputFilterFactoryClassName

      B objectInputFilterFactoryClassName(String objectInputFilterFactoryClassName)
      Parameters:
      objectInputFilterFactoryClassName - the object input filter factory class name
      Returns:
      this builder instance
    • connectionMaintenanceInterval

      B connectionMaintenanceInterval(int connectionMaintenanceInterval)
      Parameters:
      connectionMaintenanceInterval - the interval between server connection maintenance runs, in milliseconds.
      Returns:
      this builder instance
    • connectionLimit

      B connectionLimit(int connectionLimit)
      Parameters:
      connectionLimit - the maximum number of concurrent connections, -1 for no limit
      Returns:
      this builder instance
    • build

      Returns:
      a new ServerConfiguration instance based on this builder