source: branches/objectmq-1.0/src/omq/Remote.java

Last change on this file was 33, checked in by amoreno, 11 years ago

new release version

File size: 725 bytes
Line 
1package omq;
2
3import java.io.IOException;
4import java.io.Serializable;
5import java.util.Collection;
6
7import omq.common.event.Event;
8import omq.common.event.EventListener;
9import omq.exception.SerializerException;
10
11/**
12 *
13 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
14 *
15 */
16public 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.