java.lang.Object
org.klomp.snark.PeerCoordinator.StalledPiece
Enclosing class:
PeerCoordinator

private static class PeerCoordinator.StalledPieceextends Object
A stalled piece and the snapshot of its requesters, taken under the wantedPieces lock.
  • Field Details

    • piece

      final Piece piece
      The piece that stalled.
    • requesters

      final Set<PeerID> requesters
      Peers that had the piece requested.
  • Constructor Details

    • StalledPiece

      StalledPiece(Piece piece, Set<PeerID> requesters)
      Records one stalled piece.
      Parameters:
      piece - the piece that stalled
      requesters - the peers it was requested from