uka.karmi.rmi
Class CopySubstitute

java.lang.Object
  extended byuka.karmi.rmi.CopySubstitute
All Implemented Interfaces:
Anonymous, Immutable, java.io.Serializable

public class CopySubstitute
extends java.lang.Object
implements Immutable, java.io.Serializable

Objects of this class contain an integer id. It is used during serialization in a single address space in connection the CopyMarshalInputStream and the CopyMarshalOutputStream. In this case SingleRemoteClientRef objects are not copied but substituted by an object of this class. on deserialization the original object is given back. This avoids that remote references are copied inside a local call. This make garbage collection much easier.

Author:
Christian Nester, Bernhard Haumacher
See Also:
Serialized Form

Field Summary
(package private)  int index
           
 
Constructor Summary
(package private) CopySubstitute(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

int index
Constructor Detail

CopySubstitute

CopySubstitute(int index)