public interface ClientServerConfiguration
| Modifier and Type | Method and Description |
|---|---|
void |
batchMessages(boolean flag)
Configures to batch messages between client and server.
|
MessageSender |
getMessageSender()
returns the MessageSender for this Configuration context.
|
void |
maxBatchQueueSize(int maxSize)
Configures the maximum memory buffer size for batched message.
|
void |
prefetchDepth(int prefetchDepth)
Sets the depth to which prefetched objects are activated.
|
void |
prefetchIDCount(int prefetchIDCount)
Sets the number of IDs to be pre-allocated in the database for new
objects created on the client.
|
void |
prefetchObjectCount(int prefetchObjectCount)
Sets the number of objects to be prefetched for an ObjectSet.
|
void |
prefetchSlotCacheSize(int slotCacheSize)
Sets the slot cache size to the given value.
|
void |
setMessageRecipient(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.
|
void |
timeoutClientSocket(int milliseconds)
configures the time a client waits for a message response
from the server.
|
void |
timeoutServerSocket(int milliseconds)
configures the timeout of the serverside socket.
|
void prefetchIDCount(int prefetchIDCount)
prefetchIDCount - The number of IDs to be prefetchedvoid prefetchObjectCount(int prefetchObjectCount)
prefetchObjectCount - The number of objects to be prefetchedvoid prefetchDepth(int prefetchDepth)
prefetchDepth - void prefetchSlotCacheSize(int slotCacheSize)
slotCacheSize - void setMessageRecipient(MessageRecipient messageRecipient)
messageRecipient - the MessageRecipient to be usedMessageSender getMessageSender()
void timeoutClientSocket(int milliseconds)
timeoutClientSocket(int)
and timeoutServerSocket(int).
milliseconds - time in millisecondsvoid timeoutServerSocket(int milliseconds)
timeoutClientSocket(int)
and timeoutServerSocket(int).
milliseconds - time in millisecondsvoid singleThreadedClient(boolean flag)
true for low resource systems.false for best asynchronous performance and fast
GUI response.
truefalseflag - the desired settingvoid batchMessages(boolean flag)
flag - false, to turn message batching off.void maxBatchQueueSize(int maxSize)
maxSize, batched
messages will be sent to server.maxSize -