The java.rmi.server.Unreferenced Interface

Remote objects that want to be notified when no more references are pointing to them implement the Unreferenced interface.

Methods

  • public void unreferenced() - It enables the object to free resources or perform clean-up tasks before being garbage collected. This method is called by the RMI system.

 

The java.rmi.server.ObjID Class

This class is used to uniquely identify objects in a VM.

Methods

  • public static ObjID read(ObjectInput in) - Reads and constructs an object id from the specified input stream.
  • public void write(ObjectOutput out) - This method writes the serialized version of the ObjID to the given output stream.

 

The java.rmi.server.UID Class

The UID class is used to create identifiers that are unique on the host.

Methods

  • public static UID read(DataInput in) - This method reads the UID from the input stream and returns a UID object.
  • public void write(DataOutput out) - This method writes the UID data to output stream.

 

 

 

RMI BOOK MAIN PAGE                Top

  
Copyright © 2001 www.universalteacher.com