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> serverName)
      Parameters:
      serverName - the server name supplier, must return a non-empty string
      Returns:
      this builder instance
    • serverName

      B serverName(String serverName)
      Parameters:
      serverName - the server name
      Returns:
      this builder instance
      Throws:
      IllegalArgumentException - in case serverName is null or empty
    • 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
    • objectInputFilterFactoryClassName

      B objectInputFilterFactoryClassName(@Nullable 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