Package com.frostwire.jlibtorrent.alerts
Class TorrentConflictAlert
java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<com.frostwire.jlibtorrent.swig.torrent_conflict_alert>
com.frostwire.jlibtorrent.alerts.TorrentAlert<com.frostwire.jlibtorrent.swig.torrent_conflict_alert>
com.frostwire.jlibtorrent.alerts.TorrentConflictAlert
- All Implemented Interfaces:
Alert<com.frostwire.jlibtorrent.swig.torrent_conflict_alert>
public final class TorrentConflictAlert
extends TorrentAlert<com.frostwire.jlibtorrent.swig.torrent_conflict_alert>
This alert is posted when two separate torrents (magnet links) resolve to
the same torrent, thus causing the same torrent being added twice. In
that case, both torrents enter an error state with ``duplicate_torrent``
as the error code. This alert is posted containing the metadata.
The torrent this alert originated from was the one that downloaded the metadata (i.e. the `handle` member from the torrent_alert base class).
-
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 TypeMethodDescriptionThe handle to the torrent in conflict.The metadata that was received by one of the torrents in conflict.Methods inherited from class com.frostwire.jlibtorrent.alerts.TorrentAlert
handle, torrentName
-
Method Details
-
getConflictingTorrent
The handle to the torrent in conflict. The swarm associated with this torrent handle did not download the metadata, but the downloaded metadata collided with this swarm's info-hash. -
getMetadata
The metadata that was received by one of the torrents in conflict. One way to resolve the conflict is to remove both failing torrents and re-add it using this metadata.
-