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
|
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 | |
---|
| 8 | @RemoteInterface |
---|
| 9 | public 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 | |
---|
[47] | 19 | @SyncMethod(timeout = 1500) |
---|
[44] | 20 | public int divideByZero(); |
---|
| 21 | |
---|
| 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.