Class HealthReport.HealthReportBuilder
- java.lang.Object
 - 
- io.smallrye.reactive.messaging.health.HealthReport.HealthReportBuilder
 
 
- 
- Enclosing class:
 - HealthReport
 
public static class HealthReport.HealthReportBuilder extends Object
A builder to ease the creation ofHealthReport. Instances are not thread-safe. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthReport.HealthReportBuilderadd(HealthReport.ChannelInfo info)Adds a channel info to the report.HealthReport.HealthReportBuilderadd(String channel, boolean ok)Adds a channel info to the report.HealthReport.HealthReportBuilderadd(String channel, boolean ok, String message)Adds a channel info to the report.HealthReportbuild() 
 - 
 
- 
- 
Method Detail
- 
add
public HealthReport.HealthReportBuilder add(HealthReport.ChannelInfo info)
Adds a channel info to the report.- Parameters:
 info- the info, must not benull- Returns:
 - this builder
 
 
- 
add
public HealthReport.HealthReportBuilder add(String channel, boolean ok)
Adds a channel info to the report.- Parameters:
 channel- the channel, must not benullok- if the channel is ok- Returns:
 - this builder
 
 
- 
add
public HealthReport.HealthReportBuilder add(String channel, boolean ok, String message)
Adds a channel info to the report.- Parameters:
 channel- the channel, must not benullok- if the channel is okmessage- an optional message- Returns:
 - this builder
 
 
- 
build
public HealthReport build()
- Returns:
 - the built report
 
 
 - 
 
 -