Rev | Line | |
---|
[46] | 1 | package omq.test.calculator; |
---|
[44] | 2 | |
---|
| 3 | import omq.Remote; |
---|
| 4 | import omq.client.annotation.AsyncMethod; |
---|
| 5 | import omq.client.annotation.RemoteInterface; |
---|
| 6 | import omq.client.annotation.SyncMethod; |
---|
| 7 | |
---|
[83] | 8 | /** |
---|
| 9 | * |
---|
| 10 | * @author Sergi Toda <sergi.toda@estudiants.urv.cat> |
---|
| 11 | * |
---|
| 12 | */ |
---|
| 13 | |
---|
[44] | 14 | @RemoteInterface |
---|
| 15 | public 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 | |
---|
[47] | 25 | @SyncMethod(timeout = 1500) |
---|
[44] | 26 | public int divideByZero(); |
---|
| 27 | |
---|
| 28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.