aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-06-07 11:59:03 +0200
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:30 +0200
commit033d6494edc17b554ab841c3f5ea70bc5f8925de (patch)
treefc24f1564b91ee6e7009f4a92adb0981ffb92924 /vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java
parent72e82db1739fd88a78aba7d55c7ee4ef7f953863 (diff)
Revert "Remove http client use"
This reverts commit a7fd13540d34de50ed3526576c62eebc476a1e1c.
Diffstat (limited to 'vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java')
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java
new file mode 100644
index 00000000000..aa2651595ef
--- /dev/null
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java
@@ -0,0 +1,25 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.vespa.http.server;
+
+import com.yahoo.vespa.http.client.core.OperationStatus;
+
+import java.util.concurrent.BlockingQueue;
+
+/**
+ * Mapping between document ID and client session.
+ *
+ * @author Steinar Knutsen
+ */
+public class ReplyContext {
+
+ public final String docId;
+ public final BlockingQueue<OperationStatus> feedReplies;
+ public final long creationTime;
+
+ public ReplyContext(String docId, BlockingQueue<OperationStatus> feedReplies) {
+ this.docId = docId;
+ this.feedReplies = feedReplies;
+ this.creationTime = System.currentTimeMillis();
+ }
+
+}