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

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

Events deleted instead of them there's a new example of how to use the observer pattern

File size: 462 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@RemoteInterface
9public interface Calculator extends Remote {
10        @SyncMethod(timeout = 1500)
11        public int add(int x, int y);
12
13        @AsyncMethod
14        public void mult(int x, int y);
15
16        @AsyncMethod
17        public void sendMessage(Message m);
18
19        @SyncMethod(timeout = 1500)
20        public int divideByZero();
21
22}
Note: See TracBrowser for help on using the repository browser.