diff options
author | Marc Laukien <marc@zeroc.com> | 2003-03-13 19:52:53 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-03-13 19:52:53 +0000 |
commit | 1cbffef7f7ad4b2b1b8b0e2fab1f53ad9ae7d5c1 (patch) | |
tree | 542a7e17593024ef9de6b5dd7783b66fdece00f6 /java/src/Ice/ObjectAdapterI.java | |
parent | started with shrinking pool (diff) | |
download | ice-1cbffef7f7ad4b2b1b8b0e2fab1f53ad9ae7d5c1.tar.bz2 ice-1cbffef7f7ad4b2b1b8b0e2fab1f53ad9ae7d5c1.tar.xz ice-1cbffef7f7ad4b2b1b8b0e2fab1f53ad9ae7d5c1.zip |
started with shrinking pool
Diffstat (limited to 'java/src/Ice/ObjectAdapterI.java')
-rw-r--r-- | java/src/Ice/ObjectAdapterI.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/Ice/ObjectAdapterI.java b/java/src/Ice/ObjectAdapterI.java index 0122210a691..448a8c7795e 100644 --- a/java/src/Ice/ObjectAdapterI.java +++ b/java/src/Ice/ObjectAdapterI.java @@ -615,8 +615,9 @@ public final class ObjectAdapterI extends LocalObjectImpl implements ObjectAdapt setLocator(_instance.referenceFactory().getDefaultLocator()); } - int threadNum = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.Size"); - if(threadNum > 0) + int size = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.Size"); + int sizeMax = _instance.properties().getPropertyAsInt(_name + ".ThreadPool.SizeMax"); + if(size > 0 || sizeMax > 0) { _threadPool = new IceInternal.ThreadPool(_instance, _name + ".ThreadPool", 0); } |