source: trunk/src/test/java/omq/test/calculator/Calculator.java @ 83

Last change on this file since 83 was 83, checked in by stoda, 11 years ago

J

File size: 533 bytes
Line 
1package omq.test.calculator;
2
3import omq.Remote;
4import omq.client.annotation.AsyncMethod;
5import omq.client.annotation.RemoteInterface;
6import omq.client.annotation.SyncMethod;
7
8/**
9 *
10 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
11 *
12 */
13
14@RemoteInterface
15public interface Calculator extends Remote {
16        @SyncMethod(timeout = 1500)
17        public int add(int x, int y);
18
19        @AsyncMethod
20        public void mult(int x, int y);
21
22        @AsyncMethod
23        public void sendMessage(Message m);
24
25        @SyncMethod(timeout = 1500)
26        public int divideByZero();
27
28}
Note: See TracBrowser for help on using the repository browser.