FileDocCategorySizeDatePackage
DownloadEventNotifier.javaAPI DocAzureus 3.0.3.44840Thu May 31 16:28:44 BST 2007org.gudy.azureus2.plugins.download

DownloadEventNotifier

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 {@link Download} class was the only interface which defined these methods - now {@link DownloadManager#getGlobalDownloadEventNotifier} supports these methods too.
since
3.0.0.9
author
amc1

Fields Summary
Constructors Summary
Methods Summary
public voidaddActivationListener(DownloadActivationListener l)
Adds a listener that will be invoked when a request is made to activate a torrent.

param
l The listener to add.
since
2.4.0.3

public voidaddDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
Adds a listener that will be informed when a download is about to be removed. This gives the implementor the opportunity to veto the removal.

param
l The listener to add.
since
2.0.7.0

public voidaddListener(DownloadListener l)
Adds a listener that will be informed of changes to a download's state.

param
l The listener to add.
since
2.0.7.0

public voidaddPeerListener(DownloadPeerListener l)
Adds a listener that will be informed of when peer managers have been added / removed for a download.

param
l The listener to add.
since
2.1.0.0

public voidaddPropertyListener(DownloadPropertyListener l)
Adds a listener that will be informed of when properties on a download have been read / modified.

param
l The listener to add.
since
2.2.0.2

public voidaddTrackerListener(DownloadTrackerListener l)
Adds a listener that will be informed when the latest announce/scrape results change.

Listener events will be immediately triggered after the listener has been added.

param
l The listener to add.
since
2.0.7.0

public voidaddTrackerListener(DownloadTrackerListener l, boolean immediateTrigger)
Adds a listener that will be informed when the latest announce/scrape results change.

param
l The listener to add.
param
immediateTrigger Whether to immediately trigger listener's events.
since
2.4.0.3

public voidremoveActivationListener(DownloadActivationListener l)
Removes a listener object added via the {@link #addActivationListener(DownloadActivationListener)} method.

param
l The listener to remove.
since
2.4.0.3

public voidremoveDownloadWillBeRemovedListener(DownloadWillBeRemovedListener l)
Removes a listener object added via the {@link #addDownloadWillBeRemovedListener(DownloadWillBeRemovedListener)} method.

param
l The listener to remove.
since
2.0.7.0

public voidremoveListener(DownloadListener l)
Removes a listener object added via the {@link #addDownloadListener(DownloadListener)} method.

param
l The listener to remove.
since
2.0.7.0

public voidremovePeerListener(DownloadPeerListener l)
Removes a listener object added via the {@link #addPeerListener(DownloadPeerListener)} method.

param
l The listener to remove.
since
2.1.0.0

public voidremovePropertyListener(DownloadPropertyListener l)
Removes a listener object added via the {@link #addPropertyListener(DownloadPropertyListener)} method.

param
l The listener to remove.
since
2.2.0.2

public voidremoveTrackerListener(DownloadTrackerListener l)
Removes a listener object added via the {@link #addTrackerListener(DownloadTrackerListener)} or {@link #addTrackerListener(DownloadTrackerListener, boolean)} method.

param
l The listener to remove.
since
2.0.7.0