aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/EmptyBucketsVisitorResponse.java
blob: ad957d67edf4a6e4c4544555a34fdb1879c7d927 (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
// 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 java.util.List;

/**
 * Response containing list of empty buckets.
 *
 * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
 */
public class EmptyBucketsVisitorResponse extends VisitorResponse {
    private List<BucketId> bucketIds;
    /**
     * Creates visitor response containing an ack token.
     *
     * @param bucketIds the empty buckets
     * @param token the ack token
     */
    public EmptyBucketsVisitorResponse(List<BucketId> bucketIds, AckToken token) {
        super(token);
        this.bucketIds = bucketIds;
    }

    public List<BucketId> getBucketIds() { return bucketIds; }
}