Package com.db4o.cs.config
Interface ServerConfiguration
-
- All Superinterfaces:
CacheConfigurationProvider
,CommonConfigurationProvider
,FileConfigurationProvider
,IdSystemConfigurationProvider
,NetworkingConfigurationProvider
- All Known Implementing Classes:
ServerConfigurationImpl
public interface ServerConfiguration extends FileConfigurationProvider, NetworkingConfigurationProvider, CommonConfigurationProvider, CacheConfigurationProvider, IdSystemConfigurationProvider
Configuration interface for db4o servers.- Since:
- 7.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addConfigurationItem(ServerConfigurationItem configItem)
adds ConfigurationItems to be applied when an ObjectServer is opened.void
timeoutServerSocket(int milliseconds)
configures the timeout of the server side socket.-
Methods inherited from interface com.db4o.config.CacheConfigurationProvider
cache
-
Methods inherited from interface com.db4o.config.CommonConfigurationProvider
common
-
Methods inherited from interface com.db4o.config.FileConfigurationProvider
file
-
Methods inherited from interface com.db4o.config.IdSystemConfigurationProvider
idSystem
-
Methods inherited from interface com.db4o.cs.config.NetworkingConfigurationProvider
networking
-
-
-
-
Method Detail
-
addConfigurationItem
void addConfigurationItem(ServerConfigurationItem configItem)
adds ConfigurationItems to be applied when an ObjectServer is opened.- Parameters:
configItem
- theServerConfigurationItem
- Since:
- 7.12
-
timeoutServerSocket
void timeoutServerSocket(int milliseconds)
configures the timeout of the server side socket.
The server side handler waits for messages to arrive from the client. If no more messages arrive for the duration configured in this setting, the client will be disconnected.
Clients send PING messages to the server at an interval of Math.min(timeoutClientSocket(), timeoutServerSocket()) / 2 and the server will respond to keep connections alive.
Decrease this setting if you want clients to disconnect faster.
Increase this setting if you have a large number of clients and long running queries and you are getting disconnected clients that you would like to wait even longer for a response from the server.
Default value: 600000ms (10 minutes)
It is recommended to use the same values forClientConfiguration.timeoutClientSocket(int)
andtimeoutServerSocket(int)
.
This setting can be used on both client and server.- Parameters:
milliseconds
- time in milliseconds
-
-