diff --git a/data/src/main/java/one/nem/lacerta/data/Document.java b/data/src/main/java/one/nem/lacerta/data/Document.java index 145a5905..0904c3a2 100644 --- a/data/src/main/java/one/nem/lacerta/data/Document.java +++ b/data/src/main/java/one/nem/lacerta/data/Document.java @@ -2,6 +2,7 @@ package one.nem.lacerta.data; import java.lang.reflect.Array; import java.util.ArrayList; +import java.util.concurrent.CompletableFuture; import one.nem.lacerta.model.document.DocumentMeta; import one.nem.lacerta.model.document.DocumentDetail; @@ -13,13 +14,13 @@ import one.nem.lacerta.model.document.tag.DocumentTag; */ public interface Document { - DocumentDetail createDocument(DocumentMeta meta); + CompletableFuture createDocument(DocumentMeta meta); - DocumentDetail createDocument(); + CompletableFuture createDocument(); - void deleteDocument(String documentId); + CompletableFuture deleteDocument(String documentId); - void updateDocument(DocumentMeta meta, DocumentDetail detail); + CompletableFuture updateDocument(DocumentMeta meta, DocumentDetail detail); - DocumentDetail getDocument(String documentId); + CompletableFuture getDocument(String documentId); }