summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/IncomingBase.java
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-12-29 20:57:21 +0000
committerMarc Laukien <marc@zeroc.com>2002-12-29 20:57:21 +0000
commit188ab33bed6438d9dbd8743a50d2d8c29f72fc39 (patch)
treea7f79c44678028c0910921f29600e6f43901b681 /java/src/IceInternal/IncomingBase.java
parentstarted with amd (diff)
downloadice-188ab33bed6438d9dbd8743a50d2d8c29f72fc39.tar.bz2
ice-188ab33bed6438d9dbd8743a50d2d8c29f72fc39.tar.xz
ice-188ab33bed6438d9dbd8743a50d2d8c29f72fc39.zip
started AMD
Diffstat (limited to 'java/src/IceInternal/IncomingBase.java')
-rw-r--r--java/src/IceInternal/IncomingBase.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/java/src/IceInternal/IncomingBase.java b/java/src/IceInternal/IncomingBase.java
index 3c552358c94..ca6ea9798e1 100644
--- a/java/src/IceInternal/IncomingBase.java
+++ b/java/src/IceInternal/IncomingBase.java
@@ -16,6 +16,52 @@ package IceInternal;
public class IncomingBase
{
+ protected
+ IncomingBase(Instance instance, Ice.ObjectAdapter adapter, Connection connection, boolean response)
+ {
+ _current = new Ice.Current();
+ _current.id = new Ice.Identity();
+ _current.adapter = adapter;
+ _cookie = new Ice.LocalObjectHolder();
+ _connection = connection;
+ _response = response;
+ _is = new BasicStream(instance);
+ _os = new BasicStream(instance);
+ }
+
+ protected
+ IncomingBase(IncomingBase in) // Adopts the IncomingBase argument. It must not be used afterwards.
+ {
+ _current = in._current;
+ _servant = in._servant;
+ _locator = in._locator;
+ _cookie = in._cookie;
+ _connection = in._connection;
+ _response = in._response;
+ _is = in._is;
+ in._is = null;
+ _os = in._os;
+ in._os = null;
+ }
+
+ //
+ // Reclaim resources.
+ //
+ final public void
+ __destroy()
+ {
+ if(_is != null)
+ {
+ _is.destroy();
+ _is = null;
+ }
+ if(_os != null)
+ {
+ _os.destroy();
+ _os = null;
+ }
+ }
+
final protected void
__finishInvoke()
{