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

public class ConnectSdkHealthIndicator extends AbstractHealthIndicator
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 Details

    • ConnectSdkHealthIndicator

      public ConnectSdkHealthIndicator(MerchantClient merchantClient, int minInterval)
      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