private boolean hasPrimary(){
synchronized (this) {
    return this.primaryState == OTHER_PRIMARY_NOT_HOSTING || this.primaryState == OTHER_PRIMARY_HOSTING || this.primaryState == IS_PRIMARY_HOSTING;
  }
}

private boolean hasPrimary ( ) { synchronized ( this ) { return this . primaryState == OTHER_PRIMARY_NOT_HOSTING || this . primaryState == OTHER_PRIMARY_HOSTING || this . primaryState == IS_PRIMARY_HOSTING ; } }
returns true if the a primary is known .
