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 SummaryFields Modifier and Type Field Description protected Config4Impl_config
 - 
Method SummaryAll 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- 
_configprotected final Config4Impl _config 
 
- 
 - 
Method Detail- 
configpublic Config4Impl config() 
 - 
batchMessagespublic 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 interface- NetworkingConfiguration
- Parameters:
- flag- false, to turn message batching off.
 
 - 
maxBatchQueueSizepublic 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 interface- NetworkingConfiguration
 
 - 
singleThreadedClientpublic 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 interface- NetworkingConfiguration
- Parameters:
- flag- the desired setting
 
 - 
messageRecipientpublic 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 interface- NetworkingConfiguration
- Parameters:
- messageRecipient- the MessageRecipient to be used
 
 - 
clientServerFactorypublic void clientServerFactory(ClientServerFactory factory) - Specified by:
- clientServerFactoryin interface- NetworkingConfiguration
 
 - 
clientServerFactorypublic ClientServerFactory clientServerFactory() - Specified by:
- clientServerFactoryin interface- NetworkingConfiguration
 
 - 
socketFactorypublic Socket4Factory socketFactory() - Specified by:
- socketFactoryin interface- NetworkingConfiguration
 
 - 
socketFactorypublic void socketFactory(Socket4Factory factory) - Specified by:
- socketFactoryin interface- NetworkingConfiguration
 
 
- 
 
-