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) connectionPoolFactory
(String connectionPoolFactory) connectionPoolUsers
(Collection<User> connectionPoolUsers) domainClassNames
(Collection<String> domainClassNames) idleConnectionTimeout
(int idleConnectionTimeout) Methods inherited from interface is.codion.common.rmi.server.ServerConfiguration.Builder
adminPort, auxiliaryServerFactoryClassNames, connectionLimit, connectionMaintenanceInterval, objectInputFilterFactoryClassName, rmiClientSocketFactory, rmiServerSocketFactory, 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
-
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
-
connectionPoolFactory
- Parameters:
connectionPoolFactory
- the connection pool factory 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 clientType- Returns:
- this builder instance
-
build
EntityServerConfiguration build()- Specified by:
build
in interfaceServerConfiguration.Builder<EntityServerConfiguration.Builder>
- Returns:
- a new EntityServerConfiguration instance based on this builder
-