1 /**
2 *
3 */
4 package org.sourceforge.jemmrpc.example.echo;
5
6 import org.sourceforge.jemmrpc.shared.AsynchronousCall;
7
8 /**
9 * Interface offered to clients by EchoServer
10 *
11 * @author Rory Graves
12 */
13 public interface EchoServerIF
14 {
15 /**
16 * A synchronous echo call, response is returned in return value.
17 *
18 * @param message The message to send to the server
19 * @return The response received from the server.
20 */
21 String echo(String message);
22
23 /**
24 * Asynchronous echo call. Replies are received on the {@link EchoClientIF}.
25 *
26 * @param message The message to be echoed
27 */
28 @AsynchronousCall
29 void asyncEcho(String message);
30
31 }