public static class HealthReport.HealthReportBuilder extends Object
HealthReport
.
Instances are not thread-safe.Modifier and Type | Method and Description |
---|---|
HealthReport.HealthReportBuilder |
add(HealthReport.ChannelInfo info)
Adds a channel info to the report.
|
HealthReport.HealthReportBuilder |
add(String channel,
boolean ok)
Adds a channel info to the report.
|
HealthReport.HealthReportBuilder |
add(String channel,
boolean ok,
String message)
Adds a channel info to the report.
|
HealthReport |
build() |
public HealthReport.HealthReportBuilder add(HealthReport.ChannelInfo info)
info
- the info, must not be null
public HealthReport.HealthReportBuilder add(String channel, boolean ok)
channel
- the channel, must not be null
ok
- if the channel is okpublic HealthReport.HealthReportBuilder add(String channel, boolean ok, String message)
channel
- the channel, must not be null
ok
- if the channel is okmessage
- an optional messagepublic HealthReport build()
Copyright © 2018–2021 SmallRye. All rights reserved.