Line | |
---|
1 | package multiThreadTest; |
---|
2 | |
---|
3 | import java.util.List; |
---|
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.RemoteException; |
---|
10 | |
---|
11 | @RemoteInterface |
---|
12 | public interface Car extends Remote { |
---|
13 | @AsyncMethod |
---|
14 | public void setPlate(String plate); |
---|
15 | |
---|
16 | @SyncMethod(timeout = 1500) |
---|
17 | public String getPlate(); |
---|
18 | |
---|
19 | @AsyncMethod |
---|
20 | public void setHP(int hp); |
---|
21 | |
---|
22 | @SyncMethod(timeout = 1500) |
---|
23 | public int getHP(); |
---|
24 | |
---|
25 | @AsyncMethod |
---|
26 | public void setRims(List<Rim> rims); |
---|
27 | |
---|
28 | @SyncMethod(timeout = 3000) |
---|
29 | public List<Rim> getRims(); |
---|
30 | |
---|
31 | @AsyncMethod |
---|
32 | public void setMobile(String mobile) throws RemoteException; |
---|
33 | |
---|
34 | @SyncMethod |
---|
35 | public String getMobile(); |
---|
36 | |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.