com.aelitis.azureus.plugins.startstoprules.defaultplugin
Class StartStopRulesFPListener
java.lang.Object
com.aelitis.azureus.plugins.startstoprules.defaultplugin.StartStopRulesFPListener
public class StartStopRulesFPListener
- extends Object
- Author:
- TuxPaper
Method Summary |
boolean |
isFirstPriority(Download download,
int numSeeds,
int numPeers,
StringBuffer debug)
This method should return true to force a download to be first priority. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StartStopRulesFPListener
public StartStopRulesFPListener()
isFirstPriority
public boolean isFirstPriority(Download download,
int numSeeds,
int numPeers,
StringBuffer debug)
- This method should return true to force a download to be first priority. You can only use this
listener to force downloads to be first priority - you can't force downloads not to be
first priority - if you return false, then the other first priority settings and logic will be
used to determine its status.
Listeners will not be called for all downloads - the following checks may prevent listeners
being called:
- Non persistent downloads
- STOPPED or ERROR state
- Incomplete downloads
This means that listeners don't have to do these basic checks.
The StringBuffer argument is intended to output debug information about why the item
is (or isn't) first priority. The item may be null if debugging is not enabled. It is
not mandatory to log to the buffer.