Name
RemoteObject
Synopsis
The RemoteObject
class reimplements key
Object
methods for remote objects and maintains a
RemoteRef
object that is a handle to the actual
remote object. The equals()
implementation returns
true
only if the two referenced remote objects are
equal. The hashCode()
method is implemented so that every
remote stub that refers to the same remote object will have the same
hash code.
public abstract class RemoteObject implements Remote, Serializable { // Protected Constructors protected RemoteObject(); protected RemoteObject( RemoteRef newref); // Public Class Methods public static Remote toStub( // 1.2 Remote obj) throws NoSuchObjectException; // Public Instance Methods public RemoteRef getRef(); // 1.2 // Public Methods Overriding Object public boolean equals( Object obj); public int hashCode(); public String toString(); // Protected Instance Fields protected transient RemoteRef ref; }
Subclasses
RemoteServer
, RemoteStub
Passed To
RemoteRef.newCall()
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.