diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-02-08 16:26:39 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-02-08 16:26:39 +0000 |
commit | d0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a (patch) | |
tree | 8bbe532f3f9286486434f0fe43ade00d3e5410d3 /cpp/src/Ice/ReferenceFactory.cpp | |
parent | Added alternate sequence mappings (diff) | |
download | ice-d0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a.tar.bz2 ice-d0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a.tar.xz ice-d0a0add45e5cbb240f157fe3f86f6cd6cc97fc6a.zip |
Minor fixes for locator cache timeout.
Diffstat (limited to 'cpp/src/Ice/ReferenceFactory.cpp')
-rw-r--r-- | cpp/src/Ice/ReferenceFactory.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/cpp/src/Ice/ReferenceFactory.cpp b/cpp/src/Ice/ReferenceFactory.cpp index c3601a6d1a3..94baac6b428 100644 --- a/cpp/src/Ice/ReferenceFactory.cpp +++ b/cpp/src/Ice/ReferenceFactory.cpp @@ -86,7 +86,8 @@ IceInternal::ReferenceFactory::create(const Identity& ident, const string& adapterId, const RouterInfoPtr& routerInfo, const LocatorInfoPtr& locatorInfo, - bool collocationOptimization) + bool collocationOptimization, + int locatorCacheTimeout) { Mutex::Lock sync(*this); @@ -104,7 +105,7 @@ IceInternal::ReferenceFactory::create(const Identity& ident, // Create new reference // return new IndirectReference(_instance, _communicator, ident, context, facet, mode, secure, - adapterId, routerInfo, locatorInfo, collocationOptimization); + adapterId, routerInfo, locatorInfo, collocationOptimization, locatorCacheTimeout); } ReferencePtr @@ -410,7 +411,8 @@ IceInternal::ReferenceFactory::create(const string& str) if(beg == string::npos) { return create(ident, _instance->getDefaultContext(), facet, mode, secure, "", routerInfo, locatorInfo, - _instance->defaultsAndOverrides()->defaultCollocationOptimization); + _instance->defaultsAndOverrides()->defaultCollocationOptimization, + _instance->defaultsAndOverrides()->defaultLocatorCacheTimeout); } vector<EndpointIPtr> endpoints; @@ -501,7 +503,8 @@ IceInternal::ReferenceFactory::create(const string& str) throw ex; } return create(ident, _instance->getDefaultContext(), facet, mode, secure, adapter, routerInfo, - locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization); + locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization, + _instance->defaultsAndOverrides()->defaultLocatorCacheTimeout); break; } default: @@ -578,7 +581,8 @@ IceInternal::ReferenceFactory::create(const Identity& ident, BasicStream* s) { s->read(adapterId); return create(ident, _instance->getDefaultContext(), facet, mode, secure, adapterId, routerInfo, - locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization); + locatorInfo, _instance->defaultsAndOverrides()->defaultCollocationOptimization, + _instance->defaultsAndOverrides()->defaultLocatorCacheTimeout); } } |