diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-02-08 16:40:08 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-02-08 16:40:08 +0000 |
commit | 878df6ad9b1ee207fc7a3d3353e3169a0f1f50a8 (patch) | |
tree | 61b7b43c4870ccd236ac0a6ea09df312d4a55502 /java/src/IceInternal/DirectReference.java | |
parent | Minor fixes for locator cache timeout. (diff) | |
download | ice-878df6ad9b1ee207fc7a3d3353e3169a0f1f50a8.tar.bz2 ice-878df6ad9b1ee207fc7a3d3353e3169a0f1f50a8.tar.xz ice-878df6ad9b1ee207fc7a3d3353e3169a0f1f50a8.zip |
Added locator cache timeout.
Diffstat (limited to 'java/src/IceInternal/DirectReference.java')
-rw-r--r-- | java/src/IceInternal/DirectReference.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/java/src/IceInternal/DirectReference.java b/java/src/IceInternal/DirectReference.java index f1b756ee3ca..fcee0d693b0 100644 --- a/java/src/IceInternal/DirectReference.java +++ b/java/src/IceInternal/DirectReference.java @@ -39,6 +39,12 @@ public class DirectReference extends RoutableReference return _endpoints; } + public int + getLocatorCacheTimeout() + { + return 0; + } + public Reference changeLocator(Ice.LocatorPrx newLocator) { @@ -47,7 +53,8 @@ public class DirectReference extends RoutableReference LocatorInfo newLocatorInfo = getInstance().locatorManager().get(newLocator); return getInstance().referenceFactory().create(getIdentity(), getContext(), getFacet(), getMode(), getSecure(), "", null, newLocatorInfo, - getCollocationOptimization()); + getCollocationOptimization(), + getLocatorCacheTimeout()); } else { @@ -105,7 +112,7 @@ public class DirectReference extends RoutableReference getInstance().locatorManager().get(getInstance().referenceFactory().getDefaultLocator()); return getInstance().referenceFactory().create(getIdentity(), getContext(), getFacet(), getMode(), getSecure(), newAdapterId, getRouterInfo(), locatorInfo, - getCollocationOptimization()); + getCollocationOptimization(), getLocatorCacheTimeout()); } public Reference @@ -120,6 +127,12 @@ public class DirectReference extends RoutableReference return r; } + public Reference + changeLocatorCacheTimeout(int newTimeout) + { + return this; + } + public void streamWrite(BasicStream s) throws Ice.MarshalException |