Module is.codion.framework.server
Package is.codion.framework.server
Interface EntityServerConfiguration.Builder
- All Superinterfaces:
ServerConfiguration.Builder<EntityServerConfiguration.Builder>
- Enclosing interface:
- EntityServerConfiguration
public static interface EntityServerConfiguration.Builder
extends ServerConfiguration.Builder<EntityServerConfiguration.Builder>
A Builder for EntityServerConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientLogging
(boolean clientLogging) clientTypeIdleConnectionTimeouts
(Map<String, Integer> clientTypeIdleConnectionTimeouts) connectionLimit
(int connectionLimit) connectionPoolProvider
(String connectionPoolProvider) connectionPoolUsers
(Collection<User> connectionPoolUsers) domainClassNames
(Collection<String> domainClassNames) idleConnectionTimeout
(int idleConnectionTimeout) Methods inherited from interface is.codion.common.rmi.server.ServerConfiguration.Builder
adminPort, auxiliaryServerFactoryClassNames, connectionMaintenanceIntervalMs, rmiClientSocketFactory, rmiServerSocketFactory, serializationFilterDryRun, serializationFilterWhitelist, serverName, serverName, sslEnabled
-
Method Details
-
database
- Parameters:
database
- the Database implementation- Returns:
- this builder instance
-
adminUser
- Parameters:
adminUser
- the admin user- Returns:
- this builder instance
-
connectionLimit
- Parameters:
connectionLimit
- the maximum number of concurrent connections, -1 for no limit- Returns:
- this builder instance
-
clientLogging
- Parameters:
clientLogging
- if true then client logging is enabled on startup- Returns:
- this builder instance
-
idleConnectionTimeout
- Parameters:
idleConnectionTimeout
- the idle client connection timeout- Returns:
- this builder instance
-
connectionPoolProvider
- Parameters:
connectionPoolProvider
- the connection pool provider classname- Returns:
- this builder instance
-
domainClassNames
- Parameters:
domainClassNames
- the domain model classes to load on startup- Returns:
- this builder instance
-
connectionPoolUsers
- Parameters:
connectionPoolUsers
- the users for which to initialize connection pools on startup- Returns:
- this builder instance
-
clientTypeIdleConnectionTimeouts
EntityServerConfiguration.Builder clientTypeIdleConnectionTimeouts(Map<String, Integer> clientTypeIdleConnectionTimeouts) - Parameters:
clientTypeIdleConnectionTimeouts
- client type specific idle connection timeouts, mapped to clientTypeId- Returns:
- this builder instance
-
build
EntityServerConfiguration build()- Specified by:
build
in interfaceServerConfiguration.Builder<EntityServerConfiguration.Builder>
- Returns:
- a new EntityServerConfiguration instance based on this builder
-