ClientServer Configuration

Client/server configuration methods are defined in ClientServerConfiguration/IClientServerConfiguration interface. You can access them through:


.NET: 

public IConfiguration.IClientServerConfiguration ClientServer();


.NET:

void PrefetchIDCount(int prefetchIDCount);

Sets the number of IDs to be prefetched from the server for new objects created on the client. For more information see Prefetching IDs For New Objects


.NET:

void PrefetchObjectCount(int prefetchObjectCount);

Sets the number of objects to be prefetched for an ObjectSet in client/server mode. For more information see Prefetching Objects For Query Results


.NET:

public void SetMessageRecipient(IMessageRecipient messageRecipient);

sets the MessageRecipient to receive Client Server messages. For more information see Messaging.


.NET:

public IMessageSender GetMessageSender();

returns the MessageSender for this Configuration context. For more information see Messaging.


.NET:

public void TimeoutClientSocket(int milliseconds);

configures the time a client waits for a message response from the server. The default value: 300000ms (5 minutes).


.NET:

public void TimeoutServerSocket(int milliseconds);

configures the timeout of the server side socket.

All server connection threads are checking if the server was shut down on a regular basis. Use this method to configure the interval for the checks.

The default value: 5000ms (5 seconds)


.NET:

public void TimeoutPingClients(int milliseconds);

configures the delay time after which the server starts pinging connected clients to check the connection. If no client messages are received by the server for the configured interval, the server sends a "PING" message to the client and waits for an "OK" response. After 5 unsuccessful attempts, the client connection is closed.

This value may need to be increased for single-threaded clients, since they can't respond instantaneously.

The default timeout value is 180000ms (3 minutes).


.NET:

public void SingleThreadedClient(boolean flag);

configures the client messaging system to be single threaded  or multithreaded.

Recommended settings:

The default value is:


.NET:

public void MaxBatchQueueSize(int maxSize);

configures to batch messages between client and server. By default, batch mode is disabled. For more information see Batch Mode


.NET:

public void BatchMessages(boolean flag);

configures the maximum memory buffer size for batched message. If the size of batched messages is greater than maxSize, batched messages will be sent to server. For more information see Batch Mode