summaryrefslogtreecommitdiffstats
path: root/vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java')
-rwxr-xr-xvespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java19
1 files changed, 19 insertions, 0 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
new file mode 100755
index 00000000000..52f5add9f44
--- /dev/null
+++ b/vespaclient-core/src/main/java/com/yahoo/feedapi/SimpleFeedAccess.java
@@ -0,0 +1,19 @@
+// Copyright 2016 Yahoo Inc. 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();
+
+} \ No newline at end of file