Rev | Line | |
---|
[33] | 1 | package omq; |
---|
| 2 | |
---|
| 3 | import java.io.IOException; |
---|
| 4 | import java.io.Serializable; |
---|
| 5 | import java.util.Collection; |
---|
| 6 | |
---|
| 7 | import omq.common.event.Event; |
---|
| 8 | import omq.common.event.EventListener; |
---|
| 9 | import omq.exception.SerializerException; |
---|
| 10 | |
---|
| 11 | /** |
---|
| 12 | * |
---|
| 13 | * @author Sergi Toda <sergi.toda@estudiants.urv.cat> |
---|
| 14 | * |
---|
| 15 | */ |
---|
| 16 | public interface Remote extends Serializable { |
---|
| 17 | |
---|
| 18 | /** |
---|
| 19 | * Returns the UID of a RemoteObject |
---|
| 20 | * |
---|
| 21 | * @return UID |
---|
| 22 | */ |
---|
| 23 | public String getRef(); |
---|
| 24 | |
---|
| 25 | public void notifyEvent(Event event) throws IOException, SerializerException; |
---|
| 26 | |
---|
| 27 | public void addListener(EventListener eventListener) throws Exception; |
---|
| 28 | |
---|
| 29 | public void removeListener(EventListener eventListener) throws Exception; |
---|
| 30 | |
---|
| 31 | public Collection<EventListener> getListeners() throws Exception; |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.