- All Implemented Interfaces:
- org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator
public class PubSubHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
Default implemenation of
HealthIndicator
for Pub/Sub. Validates
if connection is successful by looking for a random generated subscription name that
won't be found. If no subscription is found we know the client is able to connect to
GCP Pub/Sub APIs.
- Since:
- 1.2.2
- Author:
- Vinicius Carvalho