com.transferwise.common.gracefulshutdown.config.RequestCountStrategyProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tw-graceful-shutdown Show documentation
Show all versions of tw-graceful-shutdown Show documentation
TransferWise Graceful Shutdown - no noise and errors during releases.
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"));
}