src/share/classes/java/rmi/server/RemoteRef.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:

*** 31,41 **** * <code>RemoteRef</code> represents the handle for a remote object. A * <code>RemoteStub</code> uses a remote reference to carry out a * remote method invocation to a remote object. * * @author Ann Wollrath ! * @since JDK1.1 * @see java.rmi.server.RemoteStub */ public interface RemoteRef extends java.io.Externalizable { /** indicate compatibility with JDK 1.1.x version of class. */ --- 31,41 ---- * <code>RemoteRef</code> represents the handle for a remote object. A * <code>RemoteStub</code> uses a remote reference to carry out a * remote method invocation to a remote object. * * @author Ann Wollrath ! * @since 1.1 * @see java.rmi.server.RemoteStub */ public interface RemoteRef extends java.io.Externalizable { /** indicate compatibility with JDK 1.1.x version of class. */
*** 82,92 **** * invocation on this object. Passing operation array and index, * allows the stubs generator to assign the operation indexes and * interpret them. The remote reference may need the operation to * encode in the call. * ! * @since JDK1.1 * @deprecated 1.2 style stubs no longer use this method. Instead of * using a sequence of method calls on the stub's the remote reference * (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a * stub uses a single method, <code>invoke(Remote, Method, Object[], * int)</code>, on the remote reference to carry out parameter --- 82,92 ---- * invocation on this object. Passing operation array and index, * allows the stubs generator to assign the operation indexes and * interpret them. The remote reference may need the operation to * encode in the call. * ! * @since 1.1 * @deprecated 1.2 style stubs no longer use this method. Instead of * using a sequence of method calls on the stub's the remote reference * (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a * stub uses a single method, <code>invoke(Remote, Method, Object[], * int)</code>, on the remote reference to carry out parameter
*** 112,122 **** * should pass through and not be caught by the stub. If any * exception is raised during the remote invocation, invoke should * take care of cleaning up the connection before raising the * "user" or remote exception. * ! * @since JDK1.1 * @deprecated 1.2 style stubs no longer use this method. Instead of * using a sequence of method calls to the remote reference * (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a * stub uses a single method, <code>invoke(Remote, Method, Object[], * int)</code>, on the remote reference to carry out parameter --- 112,122 ---- * should pass through and not be caught by the stub. If any * exception is raised during the remote invocation, invoke should * take care of cleaning up the connection before raising the * "user" or remote exception. * ! * @since 1.1 * @deprecated 1.2 style stubs no longer use this method. Instead of * using a sequence of method calls to the remote reference * (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a * stub uses a single method, <code>invoke(Remote, Method, Object[], * int)</code>, on the remote reference to carry out parameter
*** 133,143 **** /** * Allows the remote reference to clean up (or reuse) the connection. * Done should only be called if the invoke returns successfully * (non-exceptionally) to the stub. * ! * @since JDK1.1 * @deprecated 1.2 style stubs no longer use this method. Instead of * using a sequence of method calls to the remote reference * (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a * stub uses a single method, <code>invoke(Remote, Method, Object[], * int)</code>, on the remote reference to carry out parameter --- 133,143 ---- /** * Allows the remote reference to clean up (or reuse) the connection. * Done should only be called if the invoke returns successfully * (non-exceptionally) to the stub. * ! * @since 1.1 * @deprecated 1.2 style stubs no longer use this method. Instead of * using a sequence of method calls to the remote reference * (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a * stub uses a single method, <code>invoke(Remote, Method, Object[], * int)</code>, on the remote reference to carry out parameter
*** 155,176 **** * Returns the class name of the ref type to be serialized onto * the stream 'out'. * @param out the output stream to which the reference will be serialized * @return the class name (without package qualification) of the reference * type ! * @since JDK1.1 */ String getRefClass(java.io.ObjectOutput out); /** * Returns a hashcode for a remote object. Two remote object stubs * that refer to the same remote object will have the same hash code * (in order to support remote objects as keys in hash tables). * * @return remote object hashcode * @see java.util.Hashtable ! * @since JDK1.1 */ int remoteHashCode(); /** * Compares two remote objects for equality. --- 155,176 ---- * Returns the class name of the ref type to be serialized onto * the stream 'out'. * @param out the output stream to which the reference will be serialized * @return the class name (without package qualification) of the reference * type ! * @since 1.1 */ String getRefClass(java.io.ObjectOutput out); /** * Returns a hashcode for a remote object. Two remote object stubs * that refer to the same remote object will have the same hash code * (in order to support remote objects as keys in hash tables). * * @return remote object hashcode * @see java.util.Hashtable ! * @since 1.1 */ int remoteHashCode(); /** * Compares two remote objects for equality.
*** 178,195 **** * equivalent to the specified Object. This method is used when a * remote object is stored in a hashtable. * @param obj the Object to compare with * @return true if these Objects are equal; false otherwise. * @see java.util.Hashtable ! * @since JDK1.1 */ boolean remoteEquals(RemoteRef obj); /** * Returns a String that represents the reference of this remote * object. * @return string representing remote object reference ! * @since JDK1.1 */ String remoteToString(); } --- 178,195 ---- * equivalent to the specified Object. This method is used when a * remote object is stored in a hashtable. * @param obj the Object to compare with * @return true if these Objects are equal; false otherwise. * @see java.util.Hashtable ! * @since 1.1 */ boolean remoteEquals(RemoteRef obj); /** * Returns a String that represents the reference of this remote * object. * @return string representing remote object reference ! * @since 1.1 */ String remoteToString(); }