All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.transferwise.common.gracefulshutdown.config.RequestCountStrategyProperties Maven / Gradle / Ivy

The newest version!
package com.transferwise.common.gracefulshutdown.config;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(value = "tw-graceful-shutdown.request-count-strategy", ignoreUnknownFields = false)
@Data
public class RequestCountStrategyProperties {

  private int filterOrder = Integer.MIN_VALUE;
  private boolean enabled = true;
  private Set ignoredUris = new HashSet<>(Arrays.asList(
      "/health", "/actuator/health", "/prometheus", "/actuator/prometheus",
      "/liveness", "/actuator/liveness"));
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy