Package com.biglybt.core.download.impl
Class DownloadManagerStateImpl.CachedStateWrapper.cacheGroup
java.lang.Object
com.biglybt.core.download.impl.DownloadManagerStateImpl.CachedStateWrapper.cacheGroup
- All Implemented Interfaces:
TOTorrentAnnounceURLGroup
- Enclosing class:
- DownloadManagerStateImpl.CachedStateWrapper
protected class DownloadManagerStateImpl.CachedStateWrapper.cacheGroup
extends Object
implements TOTorrentAnnounceURLGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAnnounceURLSet(URL[] urls) This method will create a new set.(package private) voidfixGroup()Gets the current sets defined for this group, 0 length if none definedlonggetUID()voidSets the group's URL sets to the supplied values.
-
Field Details
-
sets
-
uid
private volatile long uid
-
-
Constructor Details
-
cacheGroup
- Throws:
Exception
-
-
Method Details
-
getUID
public long getUID()- Specified by:
getUIDin interfaceTOTorrentAnnounceURLGroup
-
getAnnounceURLSets
Description copied from interface:TOTorrentAnnounceURLGroupGets the current sets defined for this group, 0 length if none defined- Specified by:
getAnnounceURLSetsin interfaceTOTorrentAnnounceURLGroup- Returns:
-
fixGroup
void fixGroup() -
setAnnounceURLSets
Description copied from interface:TOTorrentAnnounceURLGroupSets the group's URL sets to the supplied values.- Specified by:
setAnnounceURLSetsin interfaceTOTorrentAnnounceURLGroup
-
createAnnounceURLSet
Description copied from interface:TOTorrentAnnounceURLGroupThis method will create a new set. It is not added into the current set, this must be done by the caller inserting the newly created set into an array as required and calling the above "set" method.- Specified by:
createAnnounceURLSetin interfaceTOTorrentAnnounceURLGroup- Parameters:
urls- the URLs for the new set- Returns:
- the newly created set
-