Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ public void init(PluginInfo info) {
.withIdleTimeout(soTimeout, TimeUnit.MILLISECONDS)
.withExecutor(commExecutor)
.withMaxConnectionsPerHost(maxConnectionsPerHost)
.addListenerFactory(this.httpListenerFactory)
.build();
this.defaultClient.addListenerFactory(this.httpListenerFactory);
this.loadbalancer = new LBJettySolrClient.Builder(defaultClient).build();

initReplicaListTransformers(getParameter(args, "replicaRouting", null, sb));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,13 @@ private void applyClientCustomizer() {
}
}

@Deprecated(since = "9.7")
/**
* Registers a listener factory on an already-built client, without discarding it. Prefer {@link
* Builder#addListenerFactory} when constructing a new client; this instance method exists for the
* case where the listener isn't known yet at construction time (or may need to change later), and
* this client's identity may already be relied on elsewhere, so it can't simply be rebuilt and
* swapped out.
*/
public void addListenerFactory(HttpListenerFactory factory) {
this.listenerFactory.add(factory);
}
Expand Down