Name
ObjID
Synopsis
An ObjID
is used on an object server to uniquely
identify exported remote objects. Its primary use in an RMI server is
during distributed garbage collection.
The equals()
method is overridden from
Object
to return true
only if
the objects identified by the two ObjID's
are
equal. The ObjID
class also has
read()
and write()
methods that
serve to marshal and unmarshal an ObjID
from I/O
streams.
public final class ObjID implements Serializable { // Public Constructors public ObjID(); public ObjID( int objNum); // Public Constants public static final int ACTIVATOR_ID; // =1, 1.2 public static final int DGC_ID; // =2 public static final int REGISTRY_ID; // =0 // Public Class Methods public static ObjID read( ObjectInput in) throws IOException; // Public Instance Methods public void write( ObjectOutput out) throws IOException; // Public Methods Overriding Object public boolean equals( Object obj); public int hashCode(); public String toString(); }
Passed To
java.rmi.dgc.DGC.{clean()
, dirty()}
Returned By
ObjID.read()
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.