Class HealthReport
- java.lang.Object
-
- io.smallrye.reactive.messaging.health.HealthReport
-
public class HealthReport extends Object
Represent an health status and its set of attached data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthReport.ChannelInfo
Structure storing the health detail of a specific channel.static class
HealthReport.HealthReportBuilder
A builder to ease the creation ofHealthReport
.
-
Field Summary
Fields Modifier and Type Field Description static HealthReport
OK_INSTANCE
A report used when there are no channels.
-
Constructor Summary
Constructors Constructor Description HealthReport(List<HealthReport.ChannelInfo> channels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthReport.HealthReportBuilder
builder()
List<HealthReport.ChannelInfo>
getChannels()
boolean
isOk()
-
-
-
Field Detail
-
OK_INSTANCE
public static final HealthReport OK_INSTANCE
A report used when there are no channels.
-
-
Constructor Detail
-
HealthReport
public HealthReport(List<HealthReport.ChannelInfo> channels)
-
-
Method Detail
-
isOk
public boolean isOk()
-
getChannels
public List<HealthReport.ChannelInfo> getChannels()
-
builder
public static HealthReport.HealthReportBuilder builder()
-
-