Package com.frostwire.jlibtorrent.alerts
Class AbstractAlert<T extends com.frostwire.jlibtorrent.swig.alert>
java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<T>
- All Implemented Interfaces:
Alert<T>
- Direct Known Subclasses:
AlertsDroppedAlert,DhtAnnounceAlert,DhtBootstrapAlert,DhtDirectResponseAlert,DhtErrorAlert,DhtGetPeersAlert,DhtGetPeersReplyAlert,DhtImmutableItemAlert,DhtLiveNodesAlert,DhtLogAlert,DhtMutableItemAlert,DhtOutgoingGetPeersAlert,DhtPktAlert,DhtPutAlert,DhtSampleInfohashesAlert,DhtStatsAlert,ExternalIpAlert,I2pAlert,IncomingConnectionAlert,ListenFailedAlert,ListenSucceededAlert,LogAlert,LsdErrorAlert,PortmapAlert,PortmapErrorAlert,PortmapLogAlert,SessionErrorAlert,SessionStatsAlert,SessionStatsHeaderAlert,Socks5Alert,StateUpdateAlert,TorrentAlert,UdpErrorAlert
-
Field Summary
FieldsFields 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 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.final Tswig()longA timestamp is automatically created in the constructor (in milliseconds).toString()type()what()Returns a string literal describing the type of the alert.
-
Field Details
-
alert
-
-
Method Details
-
swig
-
timestamp
public long timestamp()A timestamp is automatically created in the constructor (in milliseconds). -
type
-
what
Returns a string literal describing the type of the alert. It does not include any information that might be bundled with the alert. -
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. -
category
public com.frostwire.jlibtorrent.swig.alert_category_t category()Returns a bitmask specifying which categories this alert belong to. -
toString
-