(a) (1)Any party to an action in which it is alleged that two or more parties are joint tortfeasors or co-obligors on a contract debt shall be entitled to a hearing on the issue of the good faith of a settlement entered into by the plaintiff or other claimant and one or more alleged tortfeasors or co-obligors, upon giving notice in the manner provided in subdivision (b) of Section 1005. Upon a showing of good cause, the court may shorten the time for giving the required notice to permit the determination of the issue to be made before the commencement of the trial of the action, or before the verdict or judgment if settlement is made after the trial has commenced.
(2) In the alternative, a settling party may give notice of settlement to all parties and to the court, together with an application for determination of good faith settlement and a proposed order. The application shall indicate the settling parties, and the basis, terms, and amount of the settlement. The notice, application, and proposed order shall be given by certified mail, return receipt requested. Proof of service shall be filed with the court. Within 25 days of the mailing of the notice, application, and proposed order, or within 20 days of personal service, a nonsettling party may file a notice of motion to contest the good faith of the settlement. If none of the nonsettling parties files a motion within 25 days of mailing of the notice, application, and proposed order, or within 20 days of personal service, the court may approve the settlement. The notice by a nonsettling party shall be given in the manner provided in subdivision (b) of Section 1005. However, this paragraph shall not apply to settlements in which a confidentiality agreement has been entered into regarding the case or the terms of the settlement.
(b) The issue of the good faith of a settlement may be determined by the court on the basis of affidavits served with the notice of hearing, and any counteraffidavits filed in response, or the court may, in its discretion, receive other evidence at the hearing.
(c) A determination by the court that the settlement was made in good faith shall bar any other joint tortfeasor or co-obligor from any further claims against the settling tortfeasor or co-obligor for equitable comparative contribution, or partial or comparative indemnity, based on comparative negligence or comparative fault.
(d) The party asserting the lack of good faith shall have the burden of proof on that issue.
(e) When a determination of the good faith or lack of good faith of a settlement is made, any party aggrieved by the determination may petition the proper court to review the determination by writ of mandate. The petition for writ of mandate shall be filed within 20 days after service of written notice of the determination, or within any additional time not exceeding 20 days as the trial court may allow.
(1) The court shall, within 30 days of the receipt of all materials to be filed by the parties, determine whether or not the court will hear the writ and notify the parties of its determination.
(2) If the court grants a hearing on the writ, the hearing shall be given special precedence over all other civil matters on the calendar of the court except those matters to which equal or greater precedence on the calendar is granted by law.
(3) The running of any period of time after which an action would be subject to dismissal pursuant to the applicable provisions of Chapter 1.5 (commencing with Section 583.110) of Title 8 of Part 2 shall be tolled during the period of review of a determination pursuant to this subdivision.