private synchronized boolean shouldGarbageCollectPeer(Peer peer){
  Date lastSeen=peer.getLastSeen();
  Date now=new Date();
  long msSinceSeen=now.getTime() - lastSeen.getTime();
  return msSinceSeen > PEER_TIMEOUT;
}

private synchronized boolean shouldGarbageCollectPeer ( Peer peer ) { Date lastSeen = peer . getLastSeen ( ) ; Date now = new Date ( ) ; long msSinceSeen = now . getTime ( ) - lastSeen . getTime ( ) ; return msSinceSeen > PEER_TIMEOUT ; }
check whether a peer is considered old enough to consider it unlikely to return .
