| Line | |
|---|
| 1 | package omq.ztest.farm; |
|---|
| 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 Farm extends Remote { |
|---|
| 10 | |
|---|
| 11 | @AsyncMethod |
|---|
| 12 | public void setPig(Pig pig); |
|---|
| 13 | |
|---|
| 14 | @AsyncMethod |
|---|
| 15 | public void setCow(Cow cow); |
|---|
| 16 | |
|---|
| 17 | @SyncMethod(timeout = 1500) |
|---|
| 18 | public Cow getCow(); |
|---|
| 19 | |
|---|
| 20 | @SyncMethod(timeout = 1500) |
|---|
| 21 | public Pig getPig(); |
|---|
| 22 | |
|---|
| 23 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.