Skip to content

Commit

Permalink
Resolved some deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Oct 10, 2023
1 parent 641a377 commit 1b2cece
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ protected NpoApiClients(
Duration countWindow,
Integer bucketCount,
Duration warnThreshold,
Level warnLevel,
@Singular List<Locale> acceptableLanguages,
MediaType accept,
MediaType contentType,
Expand Down Expand Up @@ -252,6 +253,7 @@ protected NpoApiClients(
countWindow,
bucketCount,
warnThreshold,
warnLevel,
acceptableLanguages,
accept,
contentType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ public class MediaRestClient extends AbstractApiClient implements MediaRestClien
@Setter
@Getter
protected String errors;

@Getter
@Setter
@lombok.Builder.Default
protected boolean waitForRetry = false;

Expand Down Expand Up @@ -243,6 +246,7 @@ protected MediaRestClient(
Duration countWindow,
Integer bucketCount,
Duration warnThreshold,
nl.vpro.logging.simple.Level warnLevel,
List<Locale> acceptableLanguages,
Boolean trustAll,
Integer defaultMax,
Expand Down Expand Up @@ -281,6 +285,7 @@ protected MediaRestClient(
countWindow,
bucketCount,
warnThreshold,
warnLevel,
acceptableLanguages,
null,
null,
Expand Down Expand Up @@ -393,14 +398,6 @@ public void setUserNamePassword(String semicolonSeperated) {
}
}

public boolean isWaitForRetry() {
return waitForRetry;
}

public void setWaitForRetry(boolean waitForRetry) {
this.waitForRetry = waitForRetry;
}

public void setHeaders(Map<String, Object> headers) {
this.headers = headers;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import nl.vpro.domain.page.PageIdMatch;
import nl.vpro.domain.page.update.PageUpdate;
import nl.vpro.jmx.MBeans;
import nl.vpro.logging.simple.Level;
import nl.vpro.rs.client.VersionResult;
import nl.vpro.rs.converters.ConditionalBasicAuthentication;
import nl.vpro.rs.pages.update.PageUpdateRestService;
Expand Down Expand Up @@ -145,6 +146,7 @@ protected PageUpdateApiClient(
Duration countWindow,
Integer bucketCount,
Duration warnThreshold,
Level warnLevel,
List<Locale> acceptableLanguages,
MediaType accept,
Boolean trustAll,
Expand Down Expand Up @@ -173,6 +175,7 @@ protected PageUpdateApiClient(
countWindow,
bucketCount,
warnThreshold,
warnLevel,
acceptableLanguages,
accept,
null,
Expand Down

0 comments on commit 1b2cece

Please sign in to comment.