public interface RemoteInvoke extends Invoke, Remote
Remote class included in this package.
The implementation is so trivial, it is included it here:
public interface RemoteInvoke extends Invoke, Remote {}
Note: this interface is never implemented by classes directly, rather, a client only uses this interface to test if an object is remote, in cases where that would be of interest to the application.
To test the locality of an object reference:
if (foo instanceof RemoteInvoke) { // the object reference is remote
...
} else { // the object reference is local
...
}
Copyright © 2016. All Rights Reserved.