summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPool.java
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-02-16 14:50:37 +0000
committerMarc Laukien <marc@zeroc.com>2004-02-16 14:50:37 +0000
commit8582bf17281769d6b58618018f2119f9dd520ac7 (patch)
treef714107e952bcb13c288b417c95cf6722825c2b4 /java/src/IceInternal/ThreadPool.java
parentfix (diff)
downloadice-8582bf17281769d6b58618018f2119f9dd520ac7.tar.bz2
ice-8582bf17281769d6b58618018f2119f9dd520ac7.tar.xz
ice-8582bf17281769d6b58618018f2119f9dd520ac7.zip
fixes
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r--java/src/IceInternal/ThreadPool.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java
index 9bdb06ea3ac..11adfb87527 100644
--- a/java/src/IceInternal/ThreadPool.java
+++ b/java/src/IceInternal/ThreadPool.java
@@ -73,26 +73,27 @@ public final class ThreadPool
//
// We use just one thread as the default. This is the fastest
- // possible setting, still allows one level of nesting, and
+ // psossible setting, still allows one level of nesting, and
// doesn't require to make the servants thread safe.
//
int size = _instance.properties().getPropertyAsIntWithDefault(_prefix + ".Size", 1);
if(size < 1)
{
size = 1;
- }
- _size = size;
-
- int sizeMax = _instance.properties().getPropertyAsIntWithDefault(_prefix + ".SizeMax", _size * 10);
- if(sizeMax < _size)
+ }
+
+ int sizeMax = _instance.properties().getPropertyAsIntWithDefault(_prefix + ".SizeMax", size);
+ if(sizeMax < size)
{
- sizeMax = _size;
+ sizeMax = size;
}
- _sizeMax = sizeMax;
+
+ int sizeWarn = _instance.properties().getPropertyAsIntWithDefault(_prefix + ".SizeWarn", sizeMax * 80 / 100);
- int sizeWarn = _instance.properties().getPropertyAsIntWithDefault(_prefix + ".SizeWarn", _sizeMax * 80 / 100);
+ _size = size;
+ _sizeMax = sizeMax;
_sizeWarn = sizeWarn;
-
+
_messageSizeMax = _instance.messageSizeMax();
try