public interface EventSink
Modifier and Type | Method and Description |
---|---|
void |
fireMetadataAvailable(TorrentId torrentId,
Torrent torrent)
Generate event, that torrent's metadata has been fetched.
|
void |
firePeerBitfieldUpdated(TorrentId torrentId,
ConnectionKey connectionKey,
Bitfield bitfield)
Generate event, that local information about some peer's data has been updated.
|
void |
firePeerConnected(ConnectionKey connectionKey)
Generate event, that a new connection with some peer has been established.
|
void |
firePeerDisconnected(ConnectionKey connectionKey)
Generate event, that a connection with some peer has been terminated.
|
void |
firePeerDiscovered(TorrentId torrentId,
Peer peer)
Generate event, that a new peer has been discovered for some torrent.
|
void |
firePieceVerified(TorrentId torrentId,
int pieceIndex)
Generate event, that the downloading and verification
of one of torrent's pieces has been finished.
|
void |
fireTorrentStarted(TorrentId torrentId)
Generate event, that processing of some torrent has begun.
|
void |
fireTorrentStopped(TorrentId torrentId)
Generate event, that processing of some torrent has finished.
|
void firePeerDiscovered(TorrentId torrentId, Peer peer)
void firePeerConnected(ConnectionKey connectionKey)
void firePeerDisconnected(ConnectionKey connectionKey)
void firePeerBitfieldUpdated(TorrentId torrentId, ConnectionKey connectionKey, Bitfield bitfield)
void fireTorrentStarted(TorrentId torrentId)
void fireMetadataAvailable(TorrentId torrentId, Torrent torrent)
void fireTorrentStopped(TorrentId torrentId)
void firePieceVerified(TorrentId torrentId, int pieceIndex)
Copyright © 2016–2021. All rights reserved.