|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DownloadEventNotifier
This interface defines what methods an object should have defined to be able
to inform listener objects about various events which occur on a download.
In previous versions of Azureus, the Download class was the only
interface which defined these methods - now
DownloadManager.getGlobalDownloadEventNotifier() supports these methods too.
| Method Summary | |
|---|---|
void |
addActivationListener(DownloadActivationListener l)
Adds a listener that will be invoked when a request is made to activate a torrent. |
void |
addAttributeListener(DownloadAttributeListener l,
TorrentAttribute attr,
int event_type)
Adds a listener that will be informed of when attributes on a download have been read / modified. |
void |
addCompletionListener(DownloadCompletionListener l)
Adds a listener that will be informed when a download moves into a completed state. |
void |
addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
Adds a listener that will be informed when a download is about to be removed. |
void |
addListener(DownloadListener l)
Adds a listener that will be informed of changes to a download's state. |
void |
addPeerListener(DownloadPeerListener l)
Adds a listener that will be informed of when peer managers have been added / removed for a download. |
void |
addPropertyListener(DownloadPropertyListener l)
Deprecated. Use addAttributeListener(DownloadAttributeListener, TorrentAttribute, int)
instead - support for this method will be removed in future. |
void |
addTrackerListener(DownloadTrackerListener l)
Adds a listener that will be informed when the latest announce/scrape results change. |
void |
addTrackerListener(DownloadTrackerListener l,
boolean immediateTrigger)
Adds a listener that will be informed when the latest announce/scrape results change. |
void |
removeActivationListener(DownloadActivationListener l)
Removes a listener object added via the addActivationListener(DownloadActivationListener) method. |
void |
removeAttributeListener(DownloadAttributeListener l,
TorrentAttribute attr,
int event_type)
Removes a listener object added via the {@link #addAttributeListener(DownloadAttributeListener, TorrentAttribute, int) method. |
void |
removeCompletionListener(DownloadCompletionListener l)
Removes a listener object removed via the addCompletionListener(DownloadCompletionListener) method. |
void |
removeDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
Removes a listener object added via the addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener)
method. |
void |
removeListener(DownloadListener l)
Removes a listener object added via the #addDownloadListener(DownloadListener) method. |
void |
removePeerListener(DownloadPeerListener l)
Removes a listener object added via the addPeerListener(DownloadPeerListener) method. |
void |
removePropertyListener(DownloadPropertyListener l)
Removes a listener object added via the addPropertyListener(DownloadPropertyListener) method. |
void |
removeTrackerListener(DownloadTrackerListener l)
Removes a listener object added via the addTrackerListener(DownloadTrackerListener) or
addTrackerListener(DownloadTrackerListener, boolean) method. |
| Method Detail |
|---|
void addListener(DownloadListener l)
l - The listener to add.void removeListener(DownloadListener l)
#addDownloadListener(DownloadListener) method.
l - The listener to remove.void addTrackerListener(DownloadTrackerListener l)
Listener events will be immediately triggered after the listener has been added.
l - The listener to add.
void addTrackerListener(DownloadTrackerListener l,
boolean immediateTrigger)
l - The listener to add.immediateTrigger - Whether to immediately trigger listener's events.void removeTrackerListener(DownloadTrackerListener l)
addTrackerListener(DownloadTrackerListener) or
addTrackerListener(DownloadTrackerListener, boolean) method.
l - The listener to remove.void addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
l - The listener to add.void removeDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener)
method.
l - The listener to remove.void addActivationListener(DownloadActivationListener l)
l - The listener to add.void removeActivationListener(DownloadActivationListener l)
addActivationListener(DownloadActivationListener) method.
l - The listener to remove.void addPeerListener(DownloadPeerListener l)
l - The listener to add.void removePeerListener(DownloadPeerListener l)
addPeerListener(DownloadPeerListener) method.
l - The listener to remove.void addPropertyListener(DownloadPropertyListener l)
addAttributeListener(DownloadAttributeListener, TorrentAttribute, int)
instead - support for this method will be removed in future.
l - The listener to add.void removePropertyListener(DownloadPropertyListener l)
addPropertyListener(DownloadPropertyListener) method.
l - The listener to remove.
void addAttributeListener(DownloadAttributeListener l,
TorrentAttribute attr,
int event_type)
l - The listener to add.attr - The torrent attribute to be notified about.event_type - The type of event to be notified of, as defined on DownloadAttributeListener.
void removeAttributeListener(DownloadAttributeListener l,
TorrentAttribute attr,
int event_type)
l - The listener to remove.attr - The torrent attribute which it registered with.event_type - The type of event which it registered with.void addCompletionListener(DownloadCompletionListener l)
l - The listener to add.void removeCompletionListener(DownloadCompletionListener l)
addCompletionListener(DownloadCompletionListener) method.
l - The listener to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||