Package com.db4o.cs.internal.config
Class ClientConfigurationImpl
- java.lang.Object
-
- com.db4o.cs.internal.config.NetworkingConfigurationProviderImpl
-
- com.db4o.cs.internal.config.ClientConfigurationImpl
-
- All Implemented Interfaces:
CommonConfigurationProvider
,ClientConfiguration
,NetworkingConfigurationProvider
,LegacyConfigurationProvider
public class ClientConfigurationImpl extends NetworkingConfigurationProviderImpl implements ClientConfiguration
-
-
Constructor Summary
Constructors Constructor Description ClientConfigurationImpl(Config4Impl config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfigurationItem(ClientConfigurationItem configItem)
adds ConfigurationItems to be applied when a networkingClientObjectContainer
is opened.void
applyConfigurationItems(ExtClient client)
CommonConfiguration
common()
Access to the common configuration methods.MessageSender
messageSender()
returns the MessageSender for this Configuration context.void
prefetchDepth(int prefetchDepth)
Sets the depth to which prefetched objects will be activated.void
prefetchIDCount(int prefetchIDCount)
Sets the number of IDs to be pre-allocated in the database for new objects created on the client.void
prefetchObjectCount(int prefetchObjectCount)
Sets the number of objects to be prefetched for an ObjectSet.void
prefetchSlotCacheSize(int slotCacheSize)
Sets the slot cache size to the given value.int
timeoutClientSocket()
void
timeoutClientSocket(int milliseconds)
configures the time a client waits for a message response from the server.-
Methods inherited from class com.db4o.cs.internal.config.NetworkingConfigurationProviderImpl
legacy, networking
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.db4o.cs.config.NetworkingConfigurationProvider
networking
-
-
-
-
Constructor Detail
-
ClientConfigurationImpl
public ClientConfigurationImpl(Config4Impl config)
-
-
Method Detail
-
messageSender
public MessageSender messageSender()
Description copied from interface:ClientConfiguration
returns the MessageSender for this Configuration context. This setting should be used on the client side.- Specified by:
messageSender
in interfaceClientConfiguration
- Returns:
- MessageSender
-
prefetchIDCount
public void prefetchIDCount(int prefetchIDCount)
Description copied from interface:ClientConfiguration
Sets the number of IDs to be pre-allocated in the database for new objects created on the client.- Specified by:
prefetchIDCount
in interfaceClientConfiguration
- Parameters:
prefetchIDCount
- The number of IDs to be prefetched
-
prefetchObjectCount
public void prefetchObjectCount(int prefetchObjectCount)
Description copied from interface:ClientConfiguration
Sets the number of objects to be prefetched for an ObjectSet.- Specified by:
prefetchObjectCount
in interfaceClientConfiguration
- Parameters:
prefetchObjectCount
- The number of objects to be prefetched
-
common
public CommonConfiguration common()
Description copied from interface:CommonConfigurationProvider
Access to the common configuration methods.- Specified by:
common
in interfaceCommonConfigurationProvider
-
prefetchDepth
public void prefetchDepth(int prefetchDepth)
Description copied from interface:ClientConfiguration
Sets the depth to which prefetched objects will be activated.- Specified by:
prefetchDepth
in interfaceClientConfiguration
-
prefetchSlotCacheSize
public void prefetchSlotCacheSize(int slotCacheSize)
Description copied from interface:ClientConfiguration
Sets the slot cache size to the given value.- Specified by:
prefetchSlotCacheSize
in interfaceClientConfiguration
-
timeoutClientSocket
public void timeoutClientSocket(int milliseconds)
Description copied from interface:ClientConfiguration
configures the time a client waits for a message response from the server.
Default value: 600000ms (10 minutes)
It is recommended to use the same values forClientConfiguration.timeoutClientSocket(int)
andServerConfiguration.timeoutServerSocket(int)
.- Specified by:
timeoutClientSocket
in interfaceClientConfiguration
- Parameters:
milliseconds
- time in milliseconds
-
timeoutClientSocket
public int timeoutClientSocket()
-
addConfigurationItem
public void addConfigurationItem(ClientConfigurationItem configItem)
Description copied from interface:ClientConfiguration
adds ConfigurationItems to be applied when a networkingClientObjectContainer
is opened.- Specified by:
addConfigurationItem
in interfaceClientConfiguration
- Parameters:
configItem
- theClientConfigurationItem
-
applyConfigurationItems
public void applyConfigurationItems(ExtClient client)
-
-