aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/VisitorResponse.java
blob: 1412f7655c85fde3fd94b40d771cb1e00e2a1eeb (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 Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi;

/**
 * Common class for all visitor responses. All visitor responses have ack tokens that must be ack'ed.
 *
 * @author Håkon Humberset
 */
public class VisitorResponse {
    private AckToken token;

    /**
     * Creates visitor response containing an ack token.
     *
     * @param token the ack token
     */
    public VisitorResponse(AckToken token) {
        this.token = token;
    }

    /** @return The ack token. */
    public AckToken getAckToken() { return token; }
}