summaryrefslogtreecommitdiffstats
path: root/vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java
blob: ba267fe2feff8bcd9f84b1a5d4fe06c4073eff86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.feedapi;

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

public interface SimpleFeedAccess {

    void put(Document doc);
    void remove(DocumentId docId);
    void update(DocumentUpdate update);
    void put(Document doc, TestAndSetCondition condition);
    void remove(DocumentId docId, TestAndSetCondition condition);
    void update(DocumentUpdate update, TestAndSetCondition condition);
    boolean isAborted();
    void close();
}