A handle on the object implementing a remote object reference. Each
RemoteObject contains a
RemoteRef, which acts as its interface to the
actual remote object it represents. Normally, you won't need to
interact directly with RemoteRefs from your
application code. Rather, application code will interact with
RemoteObjects, which use their internal
RemoteRefs to perform remote method invocations.
The
newCall()
method is used to create a call object for invoking a remote method
on the referenced object. The
invoke()
method actually executes a remote method invocation. If a remote
method returns successfully, then the done()
method is called to clean up the connection to the remote object.
The
remoteEquals()
,
remoteHashCode()
, and
remoteToString()
methods on RemoteRef are used by
RemoteObjects to implement the remote versions
of the equals(),
hashCode(), and toString()
methods.
public interface RemoteRef extends java.io.Externalizable {
// Class Constants
public final static String packagePrefix;
// Public Instance Methods
public void done(RemoteCall call) throws RemoteException;
public String getRefClass(java.io.ObjectOutput out);
public void invoke(RemoteCall call) throws Exception;
public RemoteCall newCall(RemoteObject obj, Operation[] op,
int opnum, long hash)
throws RemoteException;
public boolean remoteEquals(RemoteRef obj);
public int remoteHashCode();
public String remoteToString();
}