Package org.klomp.snark
Interface CoordinatorListener
-
- All Known Implementing Classes:
FetchAndAdd
,Snark
interface CoordinatorListener
Callback used when some peer changes state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMessage(String message)
void
gotMetaInfo(PeerCoordinator coordinator, MetaInfo metainfo)
Called when the PeerCoordinator got the MetaInfo via magnet.boolean
overUpBWLimit()
Are we currently over the upstream bandwidth limit?boolean
overUpBWLimit(long total)
Is the total (in Bps) over the upstream bandwidth limit?boolean
overUploadLimit(int uploaders)
Is this number of uploaders over the per-torrent limit?void
peerChange(PeerCoordinator coordinator, Peer peer)
Called when the PeerCoordinator notices a change in the state of a peer.
-
-
-
Method Detail
-
peerChange
void peerChange(PeerCoordinator coordinator, Peer peer)
Called when the PeerCoordinator notices a change in the state of a peer.
-
gotMetaInfo
void gotMetaInfo(PeerCoordinator coordinator, MetaInfo metainfo)
Called when the PeerCoordinator got the MetaInfo via magnet.- Since:
- 0.8.4
-
overUploadLimit
boolean overUploadLimit(int uploaders)
Is this number of uploaders over the per-torrent limit?
-
overUpBWLimit
boolean overUpBWLimit()
Are we currently over the upstream bandwidth limit?
-
overUpBWLimit
boolean overUpBWLimit(long total)
Is the total (in Bps) over the upstream bandwidth limit?
-
addMessage
void addMessage(String message)
-
-