Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing deprecated ServiceDiscoveryRetryStrategy #1949

Merged
merged 2 commits into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -95,36 +95,12 @@ PartitionedHttpClientBuilder<U, R> serviceDiscoverer(

/**
* Sets a retry strategy to retry errors emitted by {@link ServiceDiscoverer}.
* <p>
* Note, calling this method will unset the value provided via
* {@link #retryServiceDiscoveryErrors(BiIntFunction)} if it was called before.
* @param retryStrategy a retry strategy to retry errors emitted by {@link ServiceDiscoverer}.
* @return {@code this}.
* @see DefaultServiceDiscoveryRetryStrategy.Builder
* @deprecated Use {@link #retryServiceDiscoveryErrors(BiIntFunction)} preferably with the standard utilities from
* {@link io.servicetalk.concurrent.api.RetryStrategies}.
*/
@Deprecated
default PartitionedHttpClientBuilder<U, R> retryServiceDiscoveryErrors(
ServiceDiscoveryRetryStrategy<R, PartitionedServiceDiscovererEvent<R>> retryStrategy) {
throw new UnsupportedOperationException("retryServiceDiscoveryErrors accepting ServiceDiscoveryRetryStrategy" +
" is not supported by " + getClass().getName());
}

/**
* Sets a retry strategy to retry errors emitted by {@link ServiceDiscoverer}.
* <p>
* Note, calling this method will unset the value provided via
* {@link #retryServiceDiscoveryErrors(ServiceDiscoveryRetryStrategy)} if it was called before.
* @param retryStrategy a retry strategy to retry errors emitted by {@link ServiceDiscoverer}.
* @return {@code this}.
* @see io.servicetalk.concurrent.api.RetryStrategies
*/
default PartitionedHttpClientBuilder<U, R> retryServiceDiscoveryErrors(
BiIntFunction<Throwable, ? extends Completable> retryStrategy) {
throw new UnsupportedOperationException("retryServiceDiscoveryErrors accepting BiIntFunction" +
" is not supported by " + getClass().getName());
}
PartitionedHttpClientBuilder<U, R> retryServiceDiscoveryErrors(
BiIntFunction<Throwable, ? extends Completable> retryStrategy);

/**
* Sets the maximum amount of {@link ServiceDiscovererEvent} objects that will be queued for each partition.
Expand Down

This file was deleted.

Loading