source: branches/objectmq_old/test/multiThreadTest/Car.java

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

Stop broker working and unbind too.

File size: 728 bytes
Line 
1package multiThreadTest;
2
3import java.util.List;
4
5import omq.Remote;
6import omq.client.annotation.AsyncMethod;
7import omq.client.annotation.RemoteInterface;
8import omq.client.annotation.SyncMethod;
9import omq.exception.RemoteException;
10
11@RemoteInterface
12public 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.