Package com.db4o.cs.internal.config
Class NetworkingConfigurationImpl
- java.lang.Object
-
- com.db4o.cs.internal.config.NetworkingConfigurationImpl
-
- All Implemented Interfaces:
NetworkingConfiguration
public class NetworkingConfigurationImpl extends java.lang.Object implements NetworkingConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected Config4Impl_config
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbatchMessages(boolean flag)Configures to batch messages between client and server.ClientServerFactoryclientServerFactory()voidclientServerFactory(ClientServerFactory factory)Config4Implconfig()voidmaxBatchQueueSize(int maxSize)Configures the maximum memory buffer size for batched message.voidmessageRecipient(MessageRecipient messageRecipient)sets the MessageRecipient to receive Client Server messages.voidsingleThreadedClient(boolean flag)configures the client messaging system to be single threaded or multithreaded.Socket4FactorysocketFactory()voidsocketFactory(Socket4Factory factory)
-
-
-
Field Detail
-
_config
protected final Config4Impl _config
-
-
Method Detail
-
config
public Config4Impl config()
-
batchMessages
public void batchMessages(boolean flag)
Description copied from interface:NetworkingConfigurationConfigures to batch messages between client and server. By default, batch mode is enabled.
This setting can be used on both client and server.- Specified by:
batchMessagesin interfaceNetworkingConfiguration- Parameters:
flag- false, to turn message batching off.
-
maxBatchQueueSize
public void maxBatchQueueSize(int maxSize)
Description copied from interface:NetworkingConfigurationConfigures the maximum memory buffer size for batched message. If the size of batched messages is greater thanmaxSize, batched messages will be sent to server.
This setting can be used on both client and server.- Specified by:
maxBatchQueueSizein interfaceNetworkingConfiguration
-
singleThreadedClient
public void singleThreadedClient(boolean flag)
Description copied from interface:NetworkingConfigurationconfigures the client messaging system to be single threaded or multithreaded.
Recommended settings:
-truefor low resource systems.
-falsefor best asynchronous performance and fast GUI response.
Default value:
- .NET Compact Framework:true
- all other platforms:false
This setting can be used on both client and server.- Specified by:
singleThreadedClientin interfaceNetworkingConfiguration- Parameters:
flag- the desired setting
-
messageRecipient
public void messageRecipient(MessageRecipient messageRecipient)
Description copied from interface:NetworkingConfigurationsets the MessageRecipient to receive Client Server messages.
This setting can be used on both client and server.- Specified by:
messageRecipientin interfaceNetworkingConfiguration- Parameters:
messageRecipient- the MessageRecipient to be used
-
clientServerFactory
public void clientServerFactory(ClientServerFactory factory)
- Specified by:
clientServerFactoryin interfaceNetworkingConfiguration
-
clientServerFactory
public ClientServerFactory clientServerFactory()
- Specified by:
clientServerFactoryin interfaceNetworkingConfiguration
-
socketFactory
public Socket4Factory socketFactory()
- Specified by:
socketFactoryin interfaceNetworkingConfiguration
-
socketFactory
public void socketFactory(Socket4Factory factory)
- Specified by:
socketFactoryin interfaceNetworkingConfiguration
-
-