code: @Override
    public void handlePieceSent(SharingPeer peer, Piece piece) {
      logger.trace("Completed upload of {} to {}.", piece, peer);
      myTorrentStatistic.addUploaded(piece.size());
    }
docs: Piece upload completion handler.
  <p/>
  <p>
  When a piece has been sent to a peer, we just record that we sent that
  many bytes. If the piece is valid on the peer's side, it will send us a
  HAVE message and we'll record that the piece is available on the peer at
  that moment (see <code>handlePieceAvailability()</code>).
  </p>
  
  @param peer  The peer we got this piece from.
  @param piece The piece in question.