Skip to content
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
6 changes: 6 additions & 0 deletions client/src/main/java/org/asynchttpclient/AsyncHttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,10 @@ public interface AsyncHttpClient extends Closeable {
* @param predicate the predicate
*/
void flushChannelPoolPartitions(Predicate<Object> predicate);

/**
* Return the config associated to this client.
* @return the config associated to this client.
*/
AsyncHttpClientConfig getConfig();
}
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,9 @@ protected BoundRequestBuilder requestBuilder(String method, String url) {
protected BoundRequestBuilder requestBuilder(Request prototype) {
return new BoundRequestBuilder(this, prototype).setSignatureCalculator(signatureCalculator);
}

@Override
public AsyncHttpClientConfig getConfig() {
return this.config;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,9 @@ public ClientStats getClientStats() {
public void flushChannelPoolPartitions(Predicate<Object> predicate) {
throw new UnsupportedOperationException();
}

@Override
public AsyncHttpClientConfig getConfig() {
return null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,9 @@ public ClientStats getClientStats() {
public void flushChannelPoolPartitions(Predicate<Object> predicate) {
throw new UnsupportedOperationException();
}

@Override
public AsyncHttpClientConfig getConfig() {
return null;
}
}