dev.fitko.fitconnect.api.config.http.RetryConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
Library that provides client access to the FIT-Connect api-endpoints for sending, subscribing and
routing
The newest version!
package dev.fitko.fitconnect.api.config.http;
import dev.fitko.fitconnect.api.config.defaults.RetryableStatusCodes;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.List;
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RetryConfig {
@Builder.Default
private boolean allowRetries = true;
@Builder.Default
private List retryableStatusCodes = RetryableStatusCodes.getDefaultCodes();
@Builder.Default
private int maxRetryCount = 5;
@Builder.Default
private int initialDelayInMs = 500;
}