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

dev.fitko.fitconnect.api.config.http.RetryConfig Maven / Gradle / Ivy

Go to download

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy