Class StorageBlobHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
com.azure.spring.cloud.actuator.storage.StorageBlobHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor
,org.springframework.boot.actuate.health.HealthIndicator
public class StorageBlobHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
Health indicator for blob storage.
-
Constructor Summary
ConstructorsConstructorDescriptionStorageBlobHealthIndicator
(com.azure.storage.blob.BlobServiceAsyncClient blobServiceAsyncClient) Creates a new instance ofStorageBlobHealthIndicator
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doHealthCheck
(org.springframework.boot.actuate.health.Health.Builder builder) void
setTimeout
(Duration timeout) Set health check request timeout.Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
health
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Constructor Details
-
StorageBlobHealthIndicator
public StorageBlobHealthIndicator(com.azure.storage.blob.BlobServiceAsyncClient blobServiceAsyncClient) Creates a new instance ofStorageBlobHealthIndicator
.- Parameters:
blobServiceAsyncClient
- the blob service client
-
-
Method Details
-
doHealthCheck
protected void doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) throws Exception - Specified by:
doHealthCheck
in classorg.springframework.boot.actuate.health.AbstractHealthIndicator
- Throws:
Exception
-
setTimeout
Set health check request timeout.- Parameters:
timeout
- the duration value.
-