diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-03-08 18:34:41 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-03-08 18:34:41 +0000 |
commit | a2d34e1ec452a7b9894fe1d6e7b9363a8d2497f5 (patch) | |
tree | 056b9f97fe4e9fc4e5133be613a92d3d34846392 /java/src/Ice/_ObjectDelM.java | |
parent | adding optimize attribute (diff) | |
download | ice-a2d34e1ec452a7b9894fe1d6e7b9363a8d2497f5.tar.bz2 ice-a2d34e1ec452a7b9894fe1d6e7b9363a8d2497f5.tar.xz ice-a2d34e1ec452a7b9894fe1d6e7b9363a8d2497f5.zip |
initial performance fixes
Diffstat (limited to 'java/src/Ice/_ObjectDelM.java')
-rw-r--r-- | java/src/Ice/_ObjectDelM.java | 101 |
1 files changed, 70 insertions, 31 deletions
diff --git a/java/src/Ice/_ObjectDelM.java b/java/src/Ice/_ObjectDelM.java index e4dcb4284c9..5347c233134 100644 --- a/java/src/Ice/_ObjectDelM.java +++ b/java/src/Ice/_ObjectDelM.java @@ -18,14 +18,21 @@ public class _ObjectDelM implements _ObjectDel { IceInternal.Outgoing __out = new IceInternal.Outgoing(__connection, __reference, "ice_isA", true, __context); - IceInternal.BasicStream __is = __out.is(); - IceInternal.BasicStream __os = __out.os(); - __os.writeString(__id); - if (!__out.invoke()) + try { - throw new UnknownUserException(); + IceInternal.BasicStream __is = __out.is(); + IceInternal.BasicStream __os = __out.os(); + __os.writeString(__id); + if (!__out.invoke()) + { + throw new UnknownUserException(); + } + return __is.readBool(); + } + finally + { + __out.destroy(); } - return __is.readBool(); } public void @@ -34,9 +41,16 @@ public class _ObjectDelM implements _ObjectDel { IceInternal.Outgoing __out = new IceInternal.Outgoing(__connection, __reference, "ice_ping", true, __context); - if (!__out.invoke()) + try { - throw new UnknownUserException(); + if (!__out.invoke()) + { + throw new UnknownUserException(); + } + } + finally + { + __out.destroy(); } } @@ -46,13 +60,19 @@ public class _ObjectDelM implements _ObjectDel { IceInternal.Outgoing __out = new IceInternal.Outgoing(__connection, __reference, "ice_ids", true, __context); - IceInternal.BasicStream __is = __out.is(); - IceInternal.BasicStream __os = __out.os(); - if (!__out.invoke()) + try { - throw new UnknownUserException(); + IceInternal.BasicStream __is = __out.is(); + if (!__out.invoke()) + { + throw new UnknownUserException(); + } + return __is.readStringSeq(); + } + finally + { + __out.destroy(); } - return __is.readStringSeq(); } public String @@ -61,13 +81,19 @@ public class _ObjectDelM implements _ObjectDel { IceInternal.Outgoing __out = new IceInternal.Outgoing(__connection, __reference, "ice_id", true, __context); - IceInternal.BasicStream __is = __out.is(); - IceInternal.BasicStream __os = __out.os(); - if (!__out.invoke()) + try { - throw new UnknownUserException(); + IceInternal.BasicStream __is = __out.is(); + if (!__out.invoke()) + { + throw new UnknownUserException(); + } + return __is.readString(); + } + finally + { + __out.destroy(); } - return __is.readString(); } public String[] @@ -76,13 +102,19 @@ public class _ObjectDelM implements _ObjectDel { IceInternal.Outgoing __out = new IceInternal.Outgoing(__connection, __reference, "ice_facets", true, __context); - IceInternal.BasicStream __is = __out.is(); - IceInternal.BasicStream __os = __out.os(); - if (!__out.invoke()) + try + { + IceInternal.BasicStream __is = __out.is(); + if (!__out.invoke()) + { + throw new UnknownUserException(); + } + return __is.readStringSeq(); + } + finally { - throw new UnknownUserException(); + __out.destroy(); } - return __is.readStringSeq(); } public boolean @@ -92,16 +124,23 @@ public class _ObjectDelM implements _ObjectDel { IceInternal.Outgoing __out = new IceInternal.Outgoing(__connection, __reference, operation, nonmutating, __context); - IceInternal.BasicStream __os = __out.os(); - __os.writeBlob(inParams); - boolean ok = __out.invoke(); - if (__reference.mode == IceInternal.Reference.ModeTwoway) + try { - IceInternal.BasicStream __is = __out.is(); - int sz = __is.getReadEncapsSize(); - outParams.value = __is.readBlob(sz); + IceInternal.BasicStream __os = __out.os(); + __os.writeBlob(inParams); + boolean ok = __out.invoke(); + if (__reference.mode == IceInternal.Reference.ModeTwoway) + { + IceInternal.BasicStream __is = __out.is(); + int sz = __is.getReadEncapsSize(); + outParams.value = __is.readBlob(sz); + } + return ok; + } + finally + { + __out.destroy(); } - return ok; } public void |