|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ISubscriber is the interface implemented by Subscriber.
com.objectspace.voyager.space.Subscriber.
Method Summary | |
void |
clear()
Clear my list of subscriptions. |
PublishedEventListener |
getListener()
Return my associated PublishedEventListener. |
Topic[] |
getTopics()
Return an array of all the topics I subscribe to. |
boolean |
isSubscriber(Topic topic)
Return true if I subscribe to the specified topic. |
void |
publishedEvent(java.util.EventObject event,
Topic topic)
If the event matches at least one of my subscriptions, forward it to my associated PublishedEventListener, otherwise ignore it. |
void |
setListener(PublishedEventListener listener)
Forward all events that match at least one of my subscriptions to the specified listener. |
void |
subscribe(Topic topic)
Add the specified topic to my list of subscriptions. |
void |
unsubscribe(Topic topic)
Remove the specified topic from my list of subscriptions. |
Method Detail |
public void subscribe(Topic topic)
topic
- The topic to add.public void unsubscribe(Topic topic)
topic
- The topic to remove.public boolean isSubscriber(Topic topic)
topic
- The topic to find.public void clear()
public Topic[] getTopics()
public void setListener(PublishedEventListener listener)
listener
- The PublishedEventListener that I will forward all matching events.public PublishedEventListener getListener()
public void publishedEvent(java.util.EventObject event, Topic topic)
event
- The eventtopic
- The topic associated with the event.
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |