aboutsummaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin/src/main/java/com/yahoo/vespa/http/server/ReplyContext.java
blob: 6dc7f4ab5162f99e191d1afdc7c47e673bbd91f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 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();
    }

}