Class AddTorrentAlert
java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<add_torrent_alert>
com.frostwire.jlibtorrent.alerts.TorrentAlert<add_torrent_alert>
com.frostwire.jlibtorrent.alerts.AddTorrentAlert
- All Implemented Interfaces:
Alert<add_torrent_alert>
This alert is always posted when a torrent was attempted to be added
and contains the return status of the add operation. The torrent handle
of the new torrent can be found in the
TorrentAlert.handle() member.
If adding the torrent failed, error() contains the error code.-
Field Summary
Fields inherited from class com.frostwire.jlibtorrent.alerts.AbstractAlert
alertFields inherited from interface com.frostwire.jlibtorrent.alerts.Alert
ALL_CATEGORIES, BLOCK_PROGRESS_NOTIFICATION, CONNECT_NOTIFICATION, DHT_LOG_NOTIFICATION, DHT_NOTIFICATION, DHT_OPERATION_NOTIFICATION, ERROR_NOTIFICATION, FILE_PROGRESS_NOTIFICATION, INCOMING_REQUEST_NOTIFICATION, IP_BLOCK_NOTIFICATION, PEER_LOG_NOTIFICATION, PEER_NOTIFICATION, PERFORMANCE_WARNING, PICKER_LOG_NOTIFICATION, PIECE_PROGRESS_NOTIFICATION, PORT_MAPPING_LOG_NOTIFICATION, PORT_MAPPING_NOTIFICATION, SESSION_LOG_NOTIFICATION, STATUS_NOTIFICATION, STORAGE_NOTIFICATION, TORRENT_LOG_NOTIFICATION, TRACKER_NOTIFICATION, UPLOAD_NOTIFICATION -
Method Summary
Modifier and TypeMethodDescriptionerror()Set to the error, if one occurred while adding the torrent.params()A copy of the parameters used when adding the torrent, it can be used to identify which invocation toSessionHandle.asyncAddTorrent(AddTorrentParams)caused this alert.Methods inherited from class com.frostwire.jlibtorrent.alerts.TorrentAlert
handle, torrentName
-
Method Details
-
params
A copy of the parameters used when adding the torrent, it can be used to identify which invocation toSessionHandle.asyncAddTorrent(AddTorrentParams)caused this alert.- Returns:
- the params used to add the torrent
-
error
Set to the error, if one occurred while adding the torrent.- Returns:
- the error
-