private boolean addInactive ( PeerAddress peerAddress ) { lock . lock ( ) ; try { // Deduplicate if ( backoffMap . containsKey ( peerAddress ) ) return false ; backoffMap . put ( peerAddress , new ExponentialBackoff ( peerBackoffParams ) ) ; inactives . offer ( peerAddress ) ; return true ; } finally { lock . unlock ( ) ; } }
Returns true if it was added false if it was already there .