db4o 8.0

com.db4o.cs.config
Interface ClientConfiguration

All Superinterfaces:
CommonConfigurationProvider, NetworkingConfigurationProvider

public interface ClientConfiguration
extends NetworkingConfigurationProvider, CommonConfigurationProvider

Configuration interface for db4o networking clients.

Since:
7.5

Method Summary
 void addConfigurationItem(ClientConfigurationItem configItem)
          adds ConfigurationItems to be applied when a networking ClientObjectContainer is opened.
 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.
 void timeoutClientSocket(int milliseconds)
          configures the time a client waits for a message response from the server.
 
Methods inherited from interface com.db4o.cs.config.NetworkingConfigurationProvider
networking
 
Methods inherited from interface com.db4o.config.CommonConfigurationProvider
common
 

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.

Parameters:
value -

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 for timeoutClientSocket(int) and #timeoutServerSocket(int).

Parameters:
milliseconds - time in milliseconds

addConfigurationItem

void addConfigurationItem(ClientConfigurationItem configItem)
adds ConfigurationItems to be applied when a networking ClientObjectContainer is opened.

Parameters:
configItem - the ClientConfigurationItem
Since:
7.12

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.