public class NetworkingConfigurationImpl extends java.lang.Object implements NetworkingConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected Config4Impl |
_config |
| Modifier and Type | Method and 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) |
protected final Config4Impl _config
public Config4Impl config()
public void batchMessages(boolean flag)
NetworkingConfigurationbatchMessages in interface NetworkingConfigurationflag - false, to turn message batching off.public void maxBatchQueueSize(int maxSize)
NetworkingConfigurationmaxSize, batched
messages will be sent to server.maxBatchQueueSize in interface NetworkingConfigurationpublic void singleThreadedClient(boolean flag)
NetworkingConfigurationtrue for low resource systems.false for best asynchronous performance and fast
GUI response.
truefalsesingleThreadedClient in interface NetworkingConfigurationflag - the desired settingpublic void messageRecipient(MessageRecipient messageRecipient)
NetworkingConfigurationmessageRecipient in interface NetworkingConfigurationmessageRecipient - the MessageRecipient to be usedpublic void clientServerFactory(ClientServerFactory factory)
clientServerFactory in interface NetworkingConfigurationpublic ClientServerFactory clientServerFactory()
clientServerFactory in interface NetworkingConfigurationpublic Socket4Factory socketFactory()
socketFactory in interface NetworkingConfigurationpublic void socketFactory(Socket4Factory factory)
socketFactory in interface NetworkingConfiguration