Skip to content

Commit 81ff8f1

Browse files
committed
Polishing
[resolves #1029] Signed-off-by: Paul Harris <[email protected]>
1 parent 51a4eb9 commit 81ff8f1

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/ConnectionContext.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public interface ConnectionContext {
3838
*/
3939
HttpClient getHttpClient();
4040

41+
/**
42+
* The number of retries after an unsuccessful request
43+
*/
44+
Long getInvalidTokenRetries();
45+
4146
/**
4247
* The {@link ObjectMapper} to use
4348
*/
@@ -56,9 +61,4 @@ public interface ConnectionContext {
5661
*/
5762
Mono<Void> trust(String host, int port);
5863

59-
/**
60-
* The number of retries after an unsuccessful request
61-
*/
62-
Long getInvalidTokenRetries();
63-
6464
}

cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/_DefaultConnectionContext.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ public HttpClient getHttpClient() {
107107
.secure(this::configureSsl);
108108
}
109109

110+
@Override
111+
@Value.Default
112+
public Long getInvalidTokenRetries() {
113+
return 5L;
114+
}
115+
110116
@Override
111117
@Value.Default
112118
public ObjectMapper getObjectMapper() {
@@ -146,12 +152,6 @@ public Mono<Void> trust(String host, int port) {
146152
.orElse(Mono.empty());
147153
}
148154

149-
@Override
150-
@Value.Default
151-
public Long getInvalidTokenRetries() {
152-
return 5L;
153-
}
154-
155155
/**
156156
* The hostname of the API root. Typically something like {@code api.run.pivotal.io}.
157157
*/

0 commit comments

Comments
 (0)