source: branches/objectmq_old/test/exceptionTest/ClientInterface.java @ 52

Last change on this file since 52 was 38, checked in by stoda, 11 years ago

Remote exception added
todo: change throws Exception to Throwable since it seems that NoSuchMethodException? does not inherit from Exception...

File size: 664 bytes
Line 
1package exceptionTest;
2
3import omq.Remote;
4import omq.client.annotation.AsyncMethod;
5import omq.client.annotation.RemoteInterface;
6import omq.client.annotation.SyncMethod;
7
8@RemoteInterface
9public interface ClientInterface extends Remote {
10        @AsyncMethod
11        public void addWheels(int numWheels);
12
13        @AsyncMethod
14        public void addHp(int hp);
15
16        @AsyncMethod
17        public void addTrailer(Trailer t);
18
19        @AsyncMethod
20        public void setPrice(double price);
21
22        @SyncMethod(timeout = 1000)
23        public Trailer getTrailer();
24
25        @SyncMethod(timeout = 1000)
26        public int getHp();
27
28        @SyncMethod(timeout = 1000)
29        public int getWheels();
30
31        @SyncMethod(timeout = 1000)
32        public double getPrice();
33}
Note: See TracBrowser for help on using the repository browser.