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 void
batchMessages(boolean flag)
Configures to batch messages between client and server.ClientServerFactory
clientServerFactory()
void
clientServerFactory(ClientServerFactory factory)
Config4Impl
config()
void
maxBatchQueueSize(int maxSize)
Configures the maximum memory buffer size for batched message.void
messageRecipient(MessageRecipient messageRecipient)
sets the MessageRecipient to receive Client Server messages.void
singleThreadedClient(boolean flag)
configures the client messaging system to be single threaded or multithreaded.Socket4Factory
socketFactory()
void
socketFactory(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:NetworkingConfiguration
Configures 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:
batchMessages
in interfaceNetworkingConfiguration
- Parameters:
flag
- false, to turn message batching off.
-
maxBatchQueueSize
public void maxBatchQueueSize(int maxSize)
Description copied from interface:NetworkingConfiguration
Configures 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:
maxBatchQueueSize
in interfaceNetworkingConfiguration
-
singleThreadedClient
public void singleThreadedClient(boolean flag)
Description copied from interface:NetworkingConfiguration
configures the client messaging system to be single threaded or multithreaded.
Recommended settings:
-true
for low resource systems.
-false
for 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:
singleThreadedClient
in interfaceNetworkingConfiguration
- Parameters:
flag
- the desired setting
-
messageRecipient
public void messageRecipient(MessageRecipient messageRecipient)
Description copied from interface:NetworkingConfiguration
sets the MessageRecipient to receive Client Server messages.
This setting can be used on both client and server.- Specified by:
messageRecipient
in interfaceNetworkingConfiguration
- Parameters:
messageRecipient
- the MessageRecipient to be used
-
clientServerFactory
public void clientServerFactory(ClientServerFactory factory)
- Specified by:
clientServerFactory
in interfaceNetworkingConfiguration
-
clientServerFactory
public ClientServerFactory clientServerFactory()
- Specified by:
clientServerFactory
in interfaceNetworkingConfiguration
-
socketFactory
public Socket4Factory socketFactory()
- Specified by:
socketFactory
in interfaceNetworkingConfiguration
-
socketFactory
public void socketFactory(Socket4Factory factory)
- Specified by:
socketFactory
in interfaceNetworkingConfiguration
-
-