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 voidaddConfigurationItem(ClientConfigurationItem configItem)adds ConfigurationItems to be applied when a networkingClientObjectContaineris opened.voidapplyConfigurationItems(ExtClient client)CommonConfigurationcommon()Access to the common configuration methods.MessageSendermessageSender()returns the MessageSender for this Configuration context.voidprefetchDepth(int prefetchDepth)Sets the depth to which prefetched objects will be activated.voidprefetchIDCount(int prefetchIDCount)Sets the number of IDs to be pre-allocated in the database for new objects created on the client.voidprefetchObjectCount(int prefetchObjectCount)Sets the number of objects to be prefetched for an ObjectSet.voidprefetchSlotCacheSize(int slotCacheSize)Sets the slot cache size to the given value.inttimeoutClientSocket()voidtimeoutClientSocket(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:ClientConfigurationreturns the MessageSender for this Configuration context. This setting should be used on the client side.- Specified by:
messageSenderin interfaceClientConfiguration- Returns:
- MessageSender
-
prefetchIDCount
public void prefetchIDCount(int prefetchIDCount)
Description copied from interface:ClientConfigurationSets the number of IDs to be pre-allocated in the database for new objects created on the client.- Specified by:
prefetchIDCountin interfaceClientConfiguration- Parameters:
prefetchIDCount- The number of IDs to be prefetched
-
prefetchObjectCount
public void prefetchObjectCount(int prefetchObjectCount)
Description copied from interface:ClientConfigurationSets the number of objects to be prefetched for an ObjectSet.- Specified by:
prefetchObjectCountin interfaceClientConfiguration- Parameters:
prefetchObjectCount- The number of objects to be prefetched
-
common
public CommonConfiguration common()
Description copied from interface:CommonConfigurationProviderAccess to the common configuration methods.- Specified by:
commonin interfaceCommonConfigurationProvider
-
prefetchDepth
public void prefetchDepth(int prefetchDepth)
Description copied from interface:ClientConfigurationSets the depth to which prefetched objects will be activated.- Specified by:
prefetchDepthin interfaceClientConfiguration
-
prefetchSlotCacheSize
public void prefetchSlotCacheSize(int slotCacheSize)
Description copied from interface:ClientConfigurationSets the slot cache size to the given value.- Specified by:
prefetchSlotCacheSizein interfaceClientConfiguration
-
timeoutClientSocket
public void timeoutClientSocket(int milliseconds)
Description copied from interface:ClientConfigurationconfigures 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:
timeoutClientSocketin interfaceClientConfiguration- Parameters:
milliseconds- time in milliseconds
-
timeoutClientSocket
public int timeoutClientSocket()
-
addConfigurationItem
public void addConfigurationItem(ClientConfigurationItem configItem)
Description copied from interface:ClientConfigurationadds ConfigurationItems to be applied when a networkingClientObjectContaineris opened.- Specified by:
addConfigurationItemin interfaceClientConfiguration- Parameters:
configItem- theClientConfigurationItem
-
applyConfigurationItems
public void applyConfigurationItems(ExtClient client)
-
-