Line | |
---|
1 | package omq.ztest.calculator; |
---|
2 | |
---|
3 | import java.io.IOException; |
---|
4 | |
---|
5 | import omq.Remote; |
---|
6 | import omq.client.annotation.AsyncMethod; |
---|
7 | import omq.client.annotation.RemoteInterface; |
---|
8 | import omq.client.annotation.SyncMethod; |
---|
9 | import omq.exception.SerializerException; |
---|
10 | |
---|
11 | @RemoteInterface |
---|
12 | public interface Calculator extends Remote { |
---|
13 | @SyncMethod(timeout = 1500) |
---|
14 | public int add(int x, int y); |
---|
15 | |
---|
16 | @AsyncMethod |
---|
17 | public void mult(int x, int y); |
---|
18 | |
---|
19 | @AsyncMethod |
---|
20 | public void sendMessage(Message m); |
---|
21 | |
---|
22 | @AsyncMethod |
---|
23 | public void divideByZero() throws IOException, SerializerException; |
---|
24 | |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.