summaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/vespaxmlparser/DocumentFeedOperation.java
blob: f3ddbc9196cb502fbbdc624893797b8563d5f85d (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 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespaxmlparser;

import com.yahoo.document.Document;
import com.yahoo.document.TestAndSetCondition;

public class DocumentFeedOperation extends ConditionalFeedOperation {
    private final Document document;
    public DocumentFeedOperation(Document document) {
        super(Type.DOCUMENT);
        this.document = document;
    }

    public DocumentFeedOperation(Document document, TestAndSetCondition condition) {
        super(Type.DOCUMENT, condition);
        this.document = document;
    }

    @Override
    public Document getDocument() {
        return document;
    }
}