Package com.db4o.cs.config
Interface ClientConfiguration
-
- All Superinterfaces:
CommonConfigurationProvider,NetworkingConfigurationProvider
- All Known Implementing Classes:
ClientConfigurationImpl
public interface ClientConfiguration extends NetworkingConfigurationProvider, CommonConfigurationProvider
Configuration interface for db4o networking clients.- Since:
- 7.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddConfigurationItem(ClientConfigurationItem configItem)adds ConfigurationItems to be applied when a networkingClientObjectContaineris opened.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.voidtimeoutClientSocket(int milliseconds)configures the time a client waits for a message response from the server.-
Methods inherited from interface com.db4o.config.CommonConfigurationProvider
common
-
Methods inherited from interface com.db4o.cs.config.NetworkingConfigurationProvider
networking
-
-
-
-
Method Detail
-
prefetchIDCount
void prefetchIDCount(int prefetchIDCount)
Sets the number of IDs to be pre-allocated in the database for new objects created on the client.- Parameters:
prefetchIDCount- The number of IDs to be prefetched
-
prefetchObjectCount
void prefetchObjectCount(int prefetchObjectCount)
Sets the number of objects to be prefetched for an ObjectSet.- Parameters:
prefetchObjectCount- The number of objects to be prefetched
-
messageSender
MessageSender messageSender()
returns the MessageSender for this Configuration context. This setting should be used on the client side.- Returns:
- MessageSender
-
prefetchDepth
void prefetchDepth(int prefetchDepth)
Sets the depth to which prefetched objects will be activated.
-
prefetchSlotCacheSize
void prefetchSlotCacheSize(int slotCacheSize)
Sets the slot cache size to the given value.- Parameters:
slotCacheSize-
-
timeoutClientSocket
void timeoutClientSocket(int milliseconds)
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 fortimeoutClientSocket(int)andServerConfiguration.timeoutServerSocket(int).- Parameters:
milliseconds- time in milliseconds
-
addConfigurationItem
void addConfigurationItem(ClientConfigurationItem configItem)
adds ConfigurationItems to be applied when a networkingClientObjectContaineris opened.- Parameters:
configItem- theClientConfigurationItem- Since:
- 7.12
-
-