From 10833f023bf59ec42c0cbc0ae96f89af08913a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Prante?= Date: Wed, 20 May 2020 18:35:02 +0200 Subject: [PATCH] renaming read client --- .../src/main/java/org/xbib/elx/api/ReadClientProvider.java | 6 ------ .../main/java/org/xbib/elx/api/SeachClientProvider.java | 7 +++++++ .../xbib/elx/api/{ReadClient.java => SearchClient.java} | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 elx-api/src/main/java/org/xbib/elx/api/ReadClientProvider.java create mode 100644 elx-api/src/main/java/org/xbib/elx/api/SeachClientProvider.java rename elx-api/src/main/java/org/xbib/elx/api/{ReadClient.java => SearchClient.java} (96%) diff --git a/elx-api/src/main/java/org/xbib/elx/api/ReadClientProvider.java b/elx-api/src/main/java/org/xbib/elx/api/ReadClientProvider.java deleted file mode 100644 index bc0eb16..0000000 --- a/elx-api/src/main/java/org/xbib/elx/api/ReadClientProvider.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.xbib.elx.api; - -public interface ReadClientProvider { - - C getReadClient(); -} diff --git a/elx-api/src/main/java/org/xbib/elx/api/SeachClientProvider.java b/elx-api/src/main/java/org/xbib/elx/api/SeachClientProvider.java new file mode 100644 index 0000000..08e3f65 --- /dev/null +++ b/elx-api/src/main/java/org/xbib/elx/api/SeachClientProvider.java @@ -0,0 +1,7 @@ +package org.xbib.elx.api; + +@FunctionalInterface +public interface SeachClientProvider { + + C getClient(); +} diff --git a/elx-api/src/main/java/org/xbib/elx/api/ReadClient.java b/elx-api/src/main/java/org/xbib/elx/api/SearchClient.java similarity index 96% rename from elx-api/src/main/java/org/xbib/elx/api/ReadClient.java rename to elx-api/src/main/java/org/xbib/elx/api/SearchClient.java index 2ecb857..0f018d4 100644 --- a/elx-api/src/main/java/org/xbib/elx/api/ReadClient.java +++ b/elx-api/src/main/java/org/xbib/elx/api/SearchClient.java @@ -9,7 +9,7 @@ import org.elasticsearch.action.get.MultiGetResponse; import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.action.search.SearchResponse; -public interface ReadClient { +public interface SearchClient { ActionFuture get(GetRequest getRequest);