diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-04-27 14:30:27 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-04-27 14:30:27 +0200 |
commit | 8993b9df81bf0acbbe42db002a202f46f019e7e6 (patch) | |
tree | 935c4155ced84270600886a2d93b7baef3ee0937 /vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java | |
parent | 8b9222ae58fe933c4cfa93d0f877ae5c4bfe09c1 (diff) |
Unify passing of all feed operations through the various feed apis.
Diffstat (limited to 'vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java')
-rwxr-xr-x | vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java b/vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java index ba267fe2fef..ea45979ee84 100755 --- a/vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java +++ b/vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java @@ -1,19 +1,17 @@ // 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.DocumentPut; +import com.yahoo.document.DocumentRemove; import com.yahoo.document.DocumentUpdate; import com.yahoo.document.TestAndSetCondition; public interface SimpleFeedAccess { - void put(Document doc); - void remove(DocumentId docId); + void put(DocumentPut doc); + void remove(DocumentRemove remove); 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(); } |