From 1f4036d9bab5370bb78305b1e898aa1a608fb751 Mon Sep 17 00:00:00 2001 From: gjoranv Date: Sat, 15 Jan 2022 00:16:45 +0100 Subject: Extend ThreadedHttpReqHndlr instead of deprecated LoggingReqHndlr --- .../src/main/java/com/yahoo/document/restapi/resource/RestApi.java | 4 ++-- .../src/main/java/com/yahoo/vespa/http/server/FeedHandler.java | 4 ++-- .../src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'vespaclient-container-plugin') 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 8cc054eb96c..bc1e58a4990 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 @@ -4,7 +4,7 @@ package com.yahoo.document.restapi.resource; import com.google.inject.Inject; import com.yahoo.container.jdisc.HttpRequest; import com.yahoo.container.jdisc.HttpResponse; -import com.yahoo.container.jdisc.LoggingRequestHandler; +import com.yahoo.container.jdisc.ThreadedHttpRequestHandler; import com.yahoo.jdisc.Metric; /** @@ -12,7 +12,7 @@ import com.yahoo.jdisc.Metric; * * @author jonmv */ -public class RestApi extends LoggingRequestHandler { +public class RestApi extends ThreadedHttpRequestHandler { @Inject public RestApi() { diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandler.java b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandler.java index 4b01835ea3c..9a1aaa33720 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandler.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandler.java @@ -5,7 +5,7 @@ import com.yahoo.collections.Tuple2; import com.yahoo.container.handler.threadpool.ContainerThreadPool; import com.yahoo.container.jdisc.HttpRequest; import com.yahoo.container.jdisc.HttpResponse; -import com.yahoo.container.jdisc.LoggingRequestHandler; +import com.yahoo.container.jdisc.ThreadedHttpRequestHandler; import com.yahoo.container.jdisc.messagebus.SessionCache; import com.yahoo.document.config.DocumentmanagerConfig; import com.yahoo.documentapi.metrics.DocumentApiMetrics; @@ -34,7 +34,7 @@ import java.util.zip.GZIPInputStream; * * @author Steinar Knutsen */ -public class FeedHandler extends LoggingRequestHandler { +public class FeedHandler extends ThreadedHttpRequestHandler { protected final ReplyHandler feedReplyHandler; private static final List serverSupportedVersions = Collections.unmodifiableList(Arrays.asList(3)); diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java index 8ec05f158c9..620c8400434 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/FeedHandlerV3.java @@ -4,7 +4,7 @@ package com.yahoo.vespa.http.server; import com.yahoo.concurrent.ThreadFactoryFactory; import com.yahoo.container.jdisc.HttpRequest; import com.yahoo.container.jdisc.HttpResponse; -import com.yahoo.container.jdisc.LoggingRequestHandler; +import com.yahoo.container.jdisc.ThreadedHttpRequestHandler; import com.yahoo.container.jdisc.messagebus.SessionCache; import com.yahoo.document.DocumentTypeManager; import com.yahoo.document.config.DocumentmanagerConfig; @@ -33,7 +33,7 @@ import java.util.logging.Logger; * * @author dybis */ -public class FeedHandlerV3 extends LoggingRequestHandler { +public class FeedHandlerV3 extends ThreadedHttpRequestHandler { private DocumentTypeManager docTypeManager; private final Map clientFeederByClientId = new HashMap<>(); -- cgit v1.2.3