private Address getReplicaAddress ( int partitionId , int replicaNumber , int backupCount ) { IPartition partition = partitionService . getPartition ( partitionId ) ; Address replicaAddress = partition . getReplicaAddress ( replicaNumber ) ; if ( replicaAddress == null ) { replicaAddress = waitForReplicaAddress ( replicaNumber , partition , backupCount ) ; } return replicaAddress ; }
Gets replica address . Waits if necessary .