Last change
on this file since 58 was
37,
checked in by stoda, 11 years ago
|
Stop broker working and unbind too.
|
File size:
635 bytes
|
Line | |
---|
1 | package test; |
---|
2 | |
---|
3 | import java.util.Set; |
---|
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 Client extends Remote { |
---|
13 | |
---|
14 | @SyncMethod(retry = 1, timeout = 1500) |
---|
15 | public String getID(); |
---|
16 | |
---|
17 | @SyncMethod(retry = 1, timeout = 1500) |
---|
18 | public String getProfileInfo(); |
---|
19 | |
---|
20 | @SyncMethod(retry = 1, timeout = 1500) |
---|
21 | public Set<String> getFriends(); |
---|
22 | |
---|
23 | @AsyncMethod |
---|
24 | public void sendMessage(String message); |
---|
25 | |
---|
26 | @AsyncMethod |
---|
27 | public void addContact(String contact) throws RemoteException; |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.