aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/BucketListVisitorResponse.java
blob: 3689fe62509ed56ff692a4181ecadb65b9d15ae7 (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
24
25
26
27
28
29
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentapi;

import com.yahoo.document.BucketId;
import com.yahoo.documentapi.messagebus.protocol.DocumentListEntry;

import java.util.List;

/**
 * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
 */
public class BucketListVisitorResponse extends VisitorResponse {
    private BucketId bucketId;
    private List<DocumentListEntry> documents;

    public BucketListVisitorResponse(BucketId bucketId, List<DocumentListEntry> documents, AckToken token) {
        super(token);
        this.bucketId = bucketId;
        this.documents = documents;
    }

    public BucketId getBucketId() {
        return bucketId;
    }

    public List<DocumentListEntry> getDocuments() {
        return documents;
    }
}