Skip to content

Commit

Permalink
Add and update deprecations.
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaMaciaszek committed Oct 11, 2024
1 parent b090ef2 commit 7ea11c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public interface ReactiveDiscoveryClient extends Ordered {
* within. We are leaving it with a deprecation in order not to bring downstream
* implementations.
*/
@Deprecated
@Deprecated(forRemoval = true)
default void probe() {
if (LOG.isWarnEnabled()) {
LOG.warn("ReactiveDiscoveryClient#probe has been called. If you're calling this method directly, "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,23 @@ public class LoadBalancerRestClientBuilderBeanPostProcessor<T extends ClientHttp

private final ApplicationContext context;

/**
* Creates a {@link LoadBalancerRestClientBuilderBeanPostProcessor} instance using a provided {@link ClientHttpRequestInterceptor} and application context.
* @param loadBalancerInterceptor a {@link ClientHttpRequestInterceptor} used for load-balancing
* @param context {@link ApplicationContext}
* @deprecated in favour of {@link LoadBalancerRestClientBuilderBeanPostProcessor#LoadBalancerRestClientBuilderBeanPostProcessor(ObjectProvider, ApplicationContext)}
*/
@Deprecated(forRemoval = true)
public LoadBalancerRestClientBuilderBeanPostProcessor(T loadBalancerInterceptor, ApplicationContext context) {
this.loadBalancerInterceptorProvider = new SimpleObjectProvider<>(loadBalancerInterceptor);
this.context = context;
}

/**
* Creates a {@link LoadBalancerRestClientBuilderBeanPostProcessor} instance using interceptor {@link ObjectProvider} and application context.
* @param loadBalancerInterceptorProvider an {@link ObjectProvider} for {@link ClientHttpRequestInterceptor} used for load-balancing
* @param context {@link ApplicationContext}
*/
public LoadBalancerRestClientBuilderBeanPostProcessor(ObjectProvider<T> loadBalancerInterceptorProvider,
ApplicationContext context) {
this.loadBalancerInterceptorProvider = loadBalancerInterceptorProvider;
Expand Down

0 comments on commit 7ea11c0

Please sign in to comment.