Interface TagFeatureRateLimit
- All Superinterfaces:
TagFeature
- All Known Subinterfaces:
TagDownload, TagFeatureRunState, TagPeer
- All Known Implementing Classes:
CategoryImpl, GlobalManagerImpl.DownloadStateTagger.MyTag, SpeedLimitHandler.PeerSet.TagPeerImpl, TagDownloadWithState
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from interface TagFeature
TF_EXEC_ON_ASSIGN, TF_FILE_LOCATION, TF_LIMITS, TF_NONE, TF_NOTIFICATIONS, TF_PROPERTIES, TF_RATE_LIMIT, TF_RSS_FEED, TF_RUN_STATE, TF_XCODE -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintbooleanint[][]booleanintbooleanintintintlong[]intintbooleanintintintlong[]long[]intintlong[]voidvoidvoidsetFirstPrioritySeeding(boolean has_priority) voidsetMaxActiveDownloads(int max) voidsetMaxActiveSeeds(int max) voidsetNotFirstPrioritySeeding(boolean has_not_priority) voidsetRecentHistoryRetention(boolean enable) voidsetStrictActivityLimits(boolean b) voidsetTagBoost(boolean boost) voidsetTagDownloadLimit(int bps) voidsetTagMaxAggregateShareRatio(int ratio_in_thousandths) voidsetTagMaxAggregateShareRatioAction(int action) voidsetTagMaxAggregateShareRatioHasPriority(boolean has_priority) voidsetTagMaxShareRatio(int ratio_in_thousandths) voidsetTagMaxShareRatioAction(int action) voidsetTagMinShareRatio(int ratio_in_thousandths) voidsetTagUploadLimit(int bps) voidsetTagUploadPriority(int priority) booleanbooleanbooleanMethods inherited from interface TagFeature
getTag
-
Field Details
-
SR_ACTION_QUEUE
static final int SR_ACTION_QUEUE- See Also:
-
SR_ACTION_PAUSE
static final int SR_ACTION_PAUSE- See Also:
-
SR_ACTION_STOP
static final int SR_ACTION_STOP- See Also:
-
SR_ACTION_ARCHIVE
static final int SR_ACTION_ARCHIVE- See Also:
-
SR_ACTION_REMOVE_FROM_LIBRARY
static final int SR_ACTION_REMOVE_FROM_LIBRARY- See Also:
-
SR_ACTION_REMOVE_FROM_COMPUTER
static final int SR_ACTION_REMOVE_FROM_COMPUTER- See Also:
-
SR_INDIVIDUAL_ACTION_DEFAULT
static final int SR_INDIVIDUAL_ACTION_DEFAULT- See Also:
-
SR_AGGREGATE_ACTION_DEFAULT
static final int SR_AGGREGATE_ACTION_DEFAULT- See Also:
-
AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY_DEFAULT
static final boolean AT_RATELIMIT_MAX_AGGREGATE_SR_PRIORITY_DEFAULT- See Also:
-
-
Method Details
-
supportsTagRates
boolean supportsTagRates() -
supportsTagUploadLimit
boolean supportsTagUploadLimit() -
supportsTagDownloadLimit
boolean supportsTagDownloadLimit() -
getTagUploadLimit
int getTagUploadLimit()- Returns:
- Max Upload Speed in bytes/sec
-
setTagUploadLimit
void setTagUploadLimit(int bps) -
getTagCurrentUploadRate
int getTagCurrentUploadRate() -
getTagDownloadLimit
int getTagDownloadLimit()- Returns:
- Max Download Speed in bytes/sec
-
setTagDownloadLimit
void setTagDownloadLimit(int bps) -
getTagCurrentDownloadRate
int getTagCurrentDownloadRate() -
getTagSessionUploadTotal
long[] getTagSessionUploadTotal() -
resetTagSessionUploadTotal
void resetTagSessionUploadTotal() -
getTagSessionDownloadTotal
long[] getTagSessionDownloadTotal() -
resetTagSessionDownloadTotal
void resetTagSessionDownloadTotal() -
getTagUploadTotal
long[] getTagUploadTotal() -
getTagDownloadTotal
long[] getTagDownloadTotal() -
setRecentHistoryRetention
void setRecentHistoryRetention(boolean enable) -
getRecentHistory
int[][] getRecentHistory() -
getTagUploadPriority
int getTagUploadPriority() -
setTagUploadPriority
void setTagUploadPriority(int priority) -
getTagBoost
boolean getTagBoost() -
setTagBoost
void setTagBoost(boolean boost) -
getFirstPrioritySeeding
boolean getFirstPrioritySeeding() -
setFirstPrioritySeeding
void setFirstPrioritySeeding(boolean has_priority) -
getNotFirstPrioritySeeding
boolean getNotFirstPrioritySeeding() -
setNotFirstPrioritySeeding
void setNotFirstPrioritySeeding(boolean has_not_priority) -
getMaxActiveDownloads
int getMaxActiveDownloads() -
setMaxActiveDownloads
void setMaxActiveDownloads(int max) -
getMaxActiveSeeds
int getMaxActiveSeeds() -
setMaxActiveSeeds
void setMaxActiveSeeds(int max) -
getStrictActivityLimits
boolean getStrictActivityLimits() -
setStrictActivityLimits
void setStrictActivityLimits(boolean b)
-