Package com.db4o.cs.config
Interface NetworkingConfiguration
-
- All Known Implementing Classes:
NetworkingConfigurationImpl
public interface NetworkingConfiguration
Configuration interface for networking configuration settings.
The network settings should be configured in exactly the same on the server and client.- Since:
- 7.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
batchMessages(boolean flag)
Configures to batch messages between client and server.ClientServerFactory
clientServerFactory()
void
clientServerFactory(ClientServerFactory factory)
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 socket4Factory)
-
-
-
Method Detail
-
clientServerFactory
void clientServerFactory(ClientServerFactory factory)
-
clientServerFactory
ClientServerFactory clientServerFactory()
-
singleThreadedClient
void singleThreadedClient(boolean flag)
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.- Parameters:
flag
- the desired setting
-
batchMessages
void batchMessages(boolean flag)
Configures to batch messages between client and server. By default, batch mode is enabled.
This setting can be used on both client and server.- Parameters:
flag
- false, to turn message batching off.
-
maxBatchQueueSize
void maxBatchQueueSize(int maxSize)
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.- Parameters:
maxSize
-
-
messageRecipient
void messageRecipient(MessageRecipient messageRecipient)
sets the MessageRecipient to receive Client Server messages.
This setting can be used on both client and server.- Parameters:
messageRecipient
- the MessageRecipient to be used
-
socketFactory
Socket4Factory socketFactory()
- Since:
- 7.11
-
socketFactory
void socketFactory(Socket4Factory socket4Factory)
- Since:
- 7.11
-
-