|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.utils.poller.CompositeObserver
class CompositeObserver
Composite observer delivers all received events to sub observers.
Constructor Summary | |
---|---|
CompositeObserver()
|
Method Summary | |
---|---|
void |
add(PollerObserverIF observer)
Adds new observer to the list. |
void |
channelChanged(ChannelIF channel)
Invoked when Poller detected changes in channel information (title and etc). |
void |
channelErrored(ChannelIF channel,
Exception e)
Invoked by Poller when poller of the channel failed. |
void |
itemFound(ItemIF item,
ChannelIF channel)
Invoked by Poller when new item is approved for addition. |
void |
pollFinished(ChannelIF channel)
Invoked by Poller when checking of the channel finished. |
void |
pollStarted(ChannelIF channel)
Invoked by Poller when checking of the channel started. |
void |
remove(PollerObserverIF observer)
Removes observer from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
CompositeObserver()
Method Detail |
---|
public final void itemFound(ItemIF item, ChannelIF channel)
itemFound
in interface PollerObserverIF
item
- item added.channel
- destination channel.public final void channelErrored(ChannelIF channel, Exception e)
channelErrored
in interface PollerObserverIF
channel
- channel.e
- original cause of failure.public final void channelChanged(ChannelIF channel)
channelChanged
in interface PollerObserverIF
channel
- channel.public final void pollStarted(ChannelIF channel)
pollStarted
in interface PollerObserverIF
channel
- channel.public final void pollFinished(ChannelIF channel)
pollFinished
in interface PollerObserverIF
channel
- channel.public final void add(PollerObserverIF observer)
observer
- new observer.public final void remove(PollerObserverIF observer)
observer
- registered observer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |