summaryrefslogtreecommitdiff
path: root/java/src/Ice/ObjectAdapterI.java
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-03-13 19:52:53 +0000
committerMarc Laukien <marc@zeroc.com>2003-03-13 19:52:53 +0000
commit1cbffef7f7ad4b2b1b8b0e2fab1f53ad9ae7d5c1 (patch)
tree542a7e17593024ef9de6b5dd7783b66fdece00f6 /java/src/Ice/ObjectAdapterI.java
parentstarted with shrinking pool (diff)
downloadice-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.java5
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);
}