boolean reserveForBecomePrimary(){
synchronized (BucketAdvisor.this) {
    if (this.volunteeringThread != null) {
      return false;
    }
    this.aggressive=true;
    return true;
  }
}

boolean reserveForBecomePrimary ( ) { synchronized ( BucketAdvisor . this ) { if ( this . volunteeringThread != null ) { return false ; } this . aggressive = true ; return true ; } }
reserves this delegate for the current thread to call becomeprimary . necessary because caller of dovolunteerforprimary must not be synchronized on bucketadvisor .
