org.klomp.snark

## Interface CoordinatorListener

- All Known Implementing Classes:
    FetchAndAdd, Snark

      interface CoordinatorListener

  Callback interface for monitoring PeerCoordinator state changes.

  This interface is used to notify listeners of:

  - Peer state changes (connection, disconnection, choking, etc.)
  - MetaInfo reception in magnet link mode
  - Upload slot limit violations
  - Status messages for user display
  See Also:
    `PeerCoordinator`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addMessage(String message)`
    `void` | `gotMetaInfo(PeerCoordinator coordinator, MetaInfo metainfo)` Called when the PeerCoordinator got the MetaInfo via magnet.
    `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

    - #### addMessage

          void addMessage(String message)

    - #### gotMetaInfo

          void gotMetaInfo(PeerCoordinator coordinator,
                           MetaInfo metainfo)

      Called when the PeerCoordinator got the MetaInfo via magnet.

    - #### overUploadLimit

          boolean overUploadLimit(int uploaders)

      Is this number of uploaders over the per-torrent limit?

    - #### peerChange

          void peerChange(PeerCoordinator coordinator,
                          Peer peer)

      Called when the PeerCoordinator notices a change in the state of a peer.