Module is.codion.common.rmi
Package is.codion.common.rmi.server
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 Summary
Modifier and TypeMethodDescriptionadminPort
(int adminPort) auxiliaryServerFactoryClassNames
(Collection<String> auxiliaryServerFactoryClassNames) build()
connectionLimit
(int connectionLimit) connectionMaintenanceInterval
(int connectionMaintenanceInterval) objectInputFilterFactoryClassName
(String objectInputFilterFactoryClassName) rmiClientSocketFactory
(RMIClientSocketFactory rmiClientSocketFactory) rmiServerSocketFactory
(RMIServerSocketFactory rmiServerSocketFactory) serverName
(String serverName) serverName
(Supplier<String> serverNameSupplier) sslEnabled
(boolean sslEnabled) When set to true this also sets the rmi client/server socket factories.
-
Method Details
-
adminPort
- Parameters:
adminPort
- the port on which to make the server admin interface accessible- Returns:
- this builder instance
-
serverName
- Parameters:
serverNameSupplier
- the server name supplier- Returns:
- this builder instance
-
serverName
- Parameters:
serverName
- the server name- Returns:
- this builder instance
-
auxiliaryServerFactoryClassNames
- Parameters:
auxiliaryServerFactoryClassNames
- the class names of auxiliary server factories, providing the servers to run alongside this server- Returns:
- this builder instance
-
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
- Parameters:
rmiClientSocketFactory
- the rmi client socket factory to use- Returns:
- this builder instance
-
rmiServerSocketFactory
- Parameters:
rmiServerSocketFactory
- the rmi server socket factory to use- Returns:
- this builder instance
-
objectInputFilterFactoryClassName
- Parameters:
objectInputFilterFactoryClassName
- the object input filter factory class name- Returns:
- this builder instance
-
connectionMaintenanceInterval
- Parameters:
connectionMaintenanceInterval
- the interval between server connection maintenance runs, in milliseconds.- Returns:
- this builder instance
-
connectionLimit
- Parameters:
connectionLimit
- the maximum number of concurrent connections, -1 for no limit- Returns:
- this builder instance
-
build
ServerConfiguration build()- Returns:
- a new ServerConfiguration instance based on this builder
-