Interface Alert<T extends com.frostwire.jlibtorrent.swig.alert>
- All Known Implementing Classes:
AbstractAlert,AddTorrentAlert,AlertsDroppedAlert,BlockDownloadingAlert,BlockFinishedAlert,BlockTimeoutAlert,BlockUploadedAlert,CacheFlushedAlert,DhtAnnounceAlert,DhtBootstrapAlert,DhtDirectResponseAlert,DhtErrorAlert,DhtGetPeersAlert,DhtGetPeersReplyAlert,DhtImmutableItemAlert,DhtLiveNodesAlert,DhtLogAlert,DhtMutableItemAlert,DhtOutgoingGetPeersAlert,DhtPktAlert,DhtPutAlert,DhtReplyAlert,DhtSampleInfohashesAlert,DhtStatsAlert,ExternalIpAlert,FastresumeRejectedAlert,FileCompletedAlert,FileErrorAlert,FilePrioAlert,FileProgressAlert,FileRenamedAlert,FileRenameFailedAlert,HashFailedAlert,I2pAlert,IncomingConnectionAlert,IncomingRequestAlert,InvalidRequestAlert,ListenFailedAlert,ListenSucceededAlert,LogAlert,LsdErrorAlert,LsdPeerAlert,MetadataFailedAlert,MetadataReceivedAlert,OversizedFileAlert,PeerAlert,PeerBanAlert,PeerBlockedAlert,PeerConnectAlert,PeerDisconnectedAlert,PeerErrorAlert,PeerInfoAlert,PeerLogAlert,PeerSnubbedAlert,PeerUnsnubbedAlert,PerformanceAlert,PickerLogAlert,PieceAvailabilityAlert,PieceFinishedAlert,PieceInfoAlert,PortmapAlert,PortmapErrorAlert,PortmapLogAlert,ReadPieceAlert,RequestDroppedAlert,SaveResumeDataAlert,SaveResumeDataFailedAlert,ScrapeFailedAlert,ScrapeReplyAlert,SessionErrorAlert,SessionStatsAlert,SessionStatsHeaderAlert,Socks5Alert,StateChangedAlert,StateUpdateAlert,StorageMovedAlert,StorageMovedFailedAlert,TorrentAlert,TorrentCheckedAlert,TorrentConflictAlert,TorrentDeletedAlert,TorrentDeleteFailedAlert,TorrentErrorAlert,TorrentFinishedAlert,TorrentLogAlert,TorrentNeedCertAlert,TorrentPausedAlert,TorrentRemovedAlert,TorrentResumedAlert,TrackerAlert,TrackerAnnounceAlert,TrackerErrorAlert,TrackeridAlert,TrackerListAlert,TrackerReplyAlert,TrackerWarningAlert,UdpErrorAlert,UnwantedBlockAlert,UrlSeedAlert
public interface Alert<T extends com.frostwire.jlibtorrent.swig.alert>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_tstatic final com.frostwire.jlibtorrent.swig.alert_category_t -
Method Summary
Modifier and TypeMethodDescriptioncom.frostwire.jlibtorrent.swig.alert_category_tcategory()Returns a bitmask specifying which categories this alert belong to.message()Generate a string describing the alert and the information bundled with it.swig()longA timestamp is automatically created in the constructor (in milliseconds).type()what()Returns a string literal describing the type of the alert.
-
Field Details
-
ERROR_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t ERROR_NOTIFICATION -
PEER_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t PEER_NOTIFICATION -
PORT_MAPPING_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t PORT_MAPPING_NOTIFICATION -
STORAGE_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t STORAGE_NOTIFICATION -
TRACKER_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t TRACKER_NOTIFICATION -
CONNECT_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t CONNECT_NOTIFICATION -
STATUS_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t STATUS_NOTIFICATION -
IP_BLOCK_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t IP_BLOCK_NOTIFICATION -
PERFORMANCE_WARNING
static final com.frostwire.jlibtorrent.swig.alert_category_t PERFORMANCE_WARNING -
DHT_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t DHT_NOTIFICATION -
SESSION_LOG_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t SESSION_LOG_NOTIFICATION -
TORRENT_LOG_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t TORRENT_LOG_NOTIFICATION -
PEER_LOG_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t PEER_LOG_NOTIFICATION -
INCOMING_REQUEST_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t INCOMING_REQUEST_NOTIFICATION -
DHT_LOG_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t DHT_LOG_NOTIFICATION -
DHT_OPERATION_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t DHT_OPERATION_NOTIFICATION -
PORT_MAPPING_LOG_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t PORT_MAPPING_LOG_NOTIFICATION -
PICKER_LOG_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t PICKER_LOG_NOTIFICATION -
FILE_PROGRESS_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t FILE_PROGRESS_NOTIFICATION -
PIECE_PROGRESS_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t PIECE_PROGRESS_NOTIFICATION -
UPLOAD_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t UPLOAD_NOTIFICATION -
BLOCK_PROGRESS_NOTIFICATION
static final com.frostwire.jlibtorrent.swig.alert_category_t BLOCK_PROGRESS_NOTIFICATION -
ALL_CATEGORIES
static final com.frostwire.jlibtorrent.swig.alert_category_t ALL_CATEGORIES
-
-
Method Details
-
swig
T swig() -
timestamp
long timestamp()A timestamp is automatically created in the constructor (in milliseconds).- Returns:
- the timestamp
-
type
AlertType type() -
what
String what()Returns a string literal describing the type of the alert. It does not include any information that might be bundled with the alert.- Returns:
-
message
String message()Generate a string describing the alert and the information bundled with it. This is mainly intended for debug and development use. It is not suitable to use this for applications that may be localized. Instead, handle each alert type individually and extract and render the information from the alert depending on the locale.- Returns:
-
category
com.frostwire.jlibtorrent.swig.alert_category_t category()Returns a bitmask specifying which categories this alert belong to.- Returns:
- the alert category
-