diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-08 15:11:54 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-08 15:11:54 +0000 |
commit | 08081350076fda0690c9d93dbd1f1a03638f3052 (patch) | |
tree | a2fa9ab82c4da7f6b46a7b9529acf2b0138e3b00 /java | |
parent | Back out change (diff) | |
download | ice-08081350076fda0690c9d93dbd1f1a03638f3052.tar.bz2 ice-08081350076fda0690c9d93dbd1f1a03638f3052.tar.xz ice-08081350076fda0690c9d93dbd1f1a03638f3052.zip |
Added ice_getCachedConnection
Diffstat (limited to 'java')
-rw-r--r-- | java/src/Ice/ObjectPrx.java | 1 | ||||
-rw-r--r-- | java/src/Ice/ObjectPrxHelperBase.java | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/java/src/Ice/ObjectPrx.java b/java/src/Ice/ObjectPrx.java index c489b9f60f5..da2e4c6a8b4 100644 --- a/java/src/Ice/ObjectPrx.java +++ b/java/src/Ice/ObjectPrx.java @@ -127,6 +127,7 @@ public interface ObjectPrx **/ Connection ice_connection(); Connection ice_getConnection(); + Connection ice_getCachedConnection(); boolean equals(java.lang.Object r); } diff --git a/java/src/Ice/ObjectPrxHelperBase.java b/java/src/Ice/ObjectPrxHelperBase.java index 6c6a977d843..fdde0d32269 100644 --- a/java/src/Ice/ObjectPrxHelperBase.java +++ b/java/src/Ice/ObjectPrxHelperBase.java @@ -785,6 +785,28 @@ public class ObjectPrxHelperBase implements ObjectPrx } } + public final Connection + ice_getCachedConnection() + { + _ObjectDel __del = null; + synchronized(this) + { + __del = _delegate; + } + + if(__del != null) + { + try + { + return __del.__getConnection(new BooleanHolder()); + } + catch(CollocationOptimizationException ex) + { + } + } + return null; + } + public final boolean equals(java.lang.Object r) { |