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 Detail

      • adminPort

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

        B serverNameProvider​(Supplier<String> serverNameProvider)
        Parameters:
        serverNameProvider - the server name provider
        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
      • 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
      • serializationFilterWhitelist

        B serializationFilterWhitelist​(String serializationFilterWhitelist)
        Parameters:
        serializationFilterWhitelist - the serialization whitelist
        Returns:
        this builder instance
      • serializationFilterDryRun

        B serializationFilterDryRun​(boolean serializationFilterDryRun)
        Parameters:
        serializationFilterDryRun - true if serialization filter dry run is active
        Returns:
        this builder instance
      • connectionMaintenanceIntervalMs

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

        ServerConfiguration build()
        Returns:
        a new ServerConfiguration instance based on this builder