summaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin/src/main/java/com
diff options
context:
space:
mode:
authorHaakon Dybdahl <dybdahl@yahoo-inc.com>2017-01-24 15:12:11 +0100
committerHaakon Dybdahl <dybdahl@yahoo-inc.com>2017-01-24 15:12:11 +0100
commit4a2ea530434ae53885aa68377704021c30fa6d9a (patch)
treea0efb83323141fc11038ee310298e496c48c131e /vespaclient-container-plugin/src/main/java/com
parente3a03847d5a0cacfa9e2465040bd146abbe66f16 (diff)
update test
Diffstat (limited to 'vespaclient-container-plugin/src/main/java/com')
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java
index 95f0169cfd0..f6a6ed05e57 100644
--- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java
@@ -69,9 +69,11 @@ public class RestApi extends LoggingRequestHandler {
public RestApi(
Executor executor,
AccessLog accessLog,
- OperationHandler operationHandler) {
+ OperationHandler operationHandler,
+ int threadsAvailable) {
super(executor, accessLog);
this.operationHandler = operationHandler;
+ this.threadsAvailableForApi.set(threadsAvailable);
}
@Override