// Add interface // // Simple example application which computes the sum of two integers // if the sequence number of the call (seqnum) matches the expected value; // otherwise, add() will return 0. // // The sequence of seqnum is established by the SecureRandom // seed during the initial authentication of the RMI connection. // // R. Perry, July 1998 public interface Add extends java.rmi.Remote { int add( int x, int y, long seqnum) throws java.rmi.RemoteException, java.rmi.server.ServerNotActiveException; }