Interface Alert<T extends 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, FileRenamedAlert, FileRenameFailedAlert, HashFailedAlert, I2pAlert, IncomingConnectionAlert, IncomingRequestAlert, InvalidRequestAlert, ListenFailedAlert, ListenSucceededAlert, LogAlert, LsdErrorAlert, LsdPeerAlert, MetadataFailedAlert, MetadataReceivedAlert, PeerAlert, PeerBanAlert, PeerBlockedAlert, PeerConnectAlert, PeerDisconnectedAlert, PeerErrorAlert, PeerLogAlert, PeerSnubbedAlert, PeerUnsnubbedAlert, PerformanceAlert, PickerLogAlert, PieceFinishedAlert, PortmapAlert, PortmapErrorAlert, PortmapLogAlert, ReadPieceAlert, RequestDroppedAlert, SaveResumeDataAlert, SaveResumeDataFailedAlert, ScrapeFailedAlert, ScrapeReplyAlert, SessionErrorAlert, SessionStatsAlert, SessionStatsHeaderAlert, StateChangedAlert, StateUpdateAlert, StorageMovedAlert, StorageMovedFailedAlert, TorrentAlert, TorrentCheckedAlert, TorrentDeletedAlert, TorrentDeleteFailedAlert, TorrentErrorAlert, TorrentFinishedAlert, TorrentLogAlert, TorrentNeedCertAlert, TorrentPausedAlert, TorrentRemovedAlert, TorrentResumedAlert, TrackerAlert, TrackerAnnounceAlert, TrackerErrorAlert, TrackeridAlert, TrackerReplyAlert, TrackerWarningAlert, UdpErrorAlert, UnwantedBlockAlert, UrlSeedAlert

public interface Alert<T extends alert>
  • Field Details

  • 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

      alert_category_t category()
      Returns a bitmask specifying which categories this alert belong to.
      Returns:
      the alert category