com.solace.spring.cloud.stream.binder.properties.SolaceSessionHealthProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-stream-binder-solace Show documentation
Show all versions of spring-cloud-stream-binder-solace Show documentation
A Spring Cloud Stream Binder implementation using the Solace Java API (JCSMP)
The newest version!
package com.solace.spring.cloud.stream.binder.properties;
import jakarta.validation.constraints.Min;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;
@Validated
@ConfigurationProperties("solace.health-check.connection")
public class SolaceSessionHealthProperties {
/**
* The number of session reconnect attempts until the health goes {@code DOWN}. This will happen regardless if
* the underlying session is actually still reconnecting. Setting this to {@code 0} will disable this feature.
* This feature operates independently of the PubSub+ session reconnect feature. Meaning that if PubSub+
* session reconnect is configured to retry less than the value given to this property, then this feature
* effectively does nothing.
*/
@Min(0)
@Getter
@Setter
private long reconnectAttemptsUntilDown = 0;
}