Class ConnectSdkHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
com.github.robtimus.connect.sdk.java.springboot.actuator.ConnectSdkHealthIndicator
- All Implemented Interfaces:
HealthContributor
,HealthIndicator
HealthIndicator
for connect-sdk-java.
This HealthIndicator
uses
merchantClient.services()
.
testconnection()
to check the connectivity to the Worldline Connect Server API.- Author:
- Rob Spoor
-
Constructor Summary
ConstructorDescriptionConnectSdkHealthIndicator
(MerchantClient merchantClient, int minInterval) Creates a new health indicator. -
Method Summary
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
-
ConnectSdkHealthIndicator
Creates a new health indicator.- Parameters:
merchantClient
- The merchant client to use.minInterval
- The minimum interval in seconds between calls. Must be > 0.
-
-
Method Details
-
doHealthCheck
- Specified by:
doHealthCheck
in classAbstractHealthIndicator
-