From 4ab13508c46043afa5e5daf51910af6d0f6fcea2 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 20 Jan 2024 23:08:49 +0900 Subject: [PATCH] =?UTF-8?q?Interface=E3=82=92CompletableFuture=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/data/LacertaLibrary.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java index eeb8546b..cb19b425 100644 --- a/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java +++ b/data/src/main/java/one/nem/lacerta/data/LacertaLibrary.java @@ -1,6 +1,7 @@ package one.nem.lacerta.data; import java.util.ArrayList; +import java.util.concurrent.CompletableFuture; import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.ListItemType; @@ -11,15 +12,13 @@ import one.nem.lacerta.model.document.DocumentDetail; public interface LacertaLibrary { // Get History - ArrayList getRecentDocument(int limit); - ArrayList getRecentDocument(int limit, int offset); + CompletableFuture> getRecentDocument(int limit); + CompletableFuture> getRecentDocument(int limit, int offset); // Get Library page - LibraryItemPage getLibraryPage(int limit); - LibraryItemPage getLibraryPage(int limit, int offset); - LibraryItemPage getLibraryPage(String pageId, int limit); - LibraryItemPage getLibraryPage(String pageId, int limit, int offset); + CompletableFuture getLibraryPage(int limit); + CompletableFuture getLibraryPage(int limit, int offset); + CompletableFuture getLibraryPage(String pageId, int limit); + CompletableFuture getLibraryPage(String pageId, int limit, int offset); - // GetDocument - DocumentDetail getDocumentDetailById(String id); // TODO-rca: Documentに統合する }