io.deepsense.neptune.clientlibrary.services.apiservice.retries.RequestRetryStrategyFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-client-library Show documentation
Show all versions of neptune-client-library Show documentation
Enables integration with Neptune in your Java code
/**
* Copyright (c) 2016, CodiLime Inc.
*/
package io.deepsense.neptune.clientlibrary.services.apiservice.retries;
import io.deepsense.neptune.clientlibrary.config.internal.RequestRetryConfiguration;
public class RequestRetryStrategyFactory {
private final RequestRetryConfiguration configuration;
public RequestRetryStrategyFactory(RequestRetryConfiguration configuration) {
this.configuration = configuration;
}
public RequestRetryStrategy create() {
return new IncreasingTimeoutsRequestRetryStrategy(configuration);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy