diff --git a/src/main/java/org/elasticsearch/client/action/RequestBuilder.java b/src/main/java/org/elasticsearch/client/action/ActionRequestBuilder.java similarity index 90% rename from src/main/java/org/elasticsearch/client/action/RequestBuilder.java rename to src/main/java/org/elasticsearch/client/action/ActionRequestBuilder.java index 5fc6baa867d..55de41a6c5c 100644 --- a/src/main/java/org/elasticsearch/client/action/RequestBuilder.java +++ b/src/main/java/org/elasticsearch/client/action/ActionRequestBuilder.java @@ -27,7 +27,9 @@ import org.elasticsearch.action.ListenableActionFuture; /** * */ -public interface RequestBuilder { +public interface ActionRequestBuilder { + + Request request(); ListenableActionFuture execute(); diff --git a/src/main/java/org/elasticsearch/client/action/admin/cluster/support/BaseClusterRequestBuilder.java b/src/main/java/org/elasticsearch/client/action/admin/cluster/support/BaseClusterRequestBuilder.java index 44c7a3954f0..c73ea90416c 100644 --- a/src/main/java/org/elasticsearch/client/action/admin/cluster/support/BaseClusterRequestBuilder.java +++ b/src/main/java/org/elasticsearch/client/action/admin/cluster/support/BaseClusterRequestBuilder.java @@ -25,13 +25,13 @@ import org.elasticsearch.action.ActionResponse; import org.elasticsearch.action.ListenableActionFuture; import org.elasticsearch.action.support.PlainListenableActionFuture; import org.elasticsearch.client.ClusterAdminClient; -import org.elasticsearch.client.action.RequestBuilder; +import org.elasticsearch.client.action.ActionRequestBuilder; import org.elasticsearch.client.internal.InternalClusterAdminClient; /** * */ -public abstract class BaseClusterRequestBuilder implements RequestBuilder { +public abstract class BaseClusterRequestBuilder implements ActionRequestBuilder { protected final InternalClusterAdminClient client; @@ -42,6 +42,11 @@ public abstract class BaseClusterRequestBuilder execute() { PlainListenableActionFuture future = new PlainListenableActionFuture(request.listenerThreaded(), client.threadPool()); diff --git a/src/main/java/org/elasticsearch/client/action/admin/indices/support/BaseIndicesRequestBuilder.java b/src/main/java/org/elasticsearch/client/action/admin/indices/support/BaseIndicesRequestBuilder.java index d5c47bfb0cd..b15d1e17028 100644 --- a/src/main/java/org/elasticsearch/client/action/admin/indices/support/BaseIndicesRequestBuilder.java +++ b/src/main/java/org/elasticsearch/client/action/admin/indices/support/BaseIndicesRequestBuilder.java @@ -25,13 +25,13 @@ import org.elasticsearch.action.ActionResponse; import org.elasticsearch.action.ListenableActionFuture; import org.elasticsearch.action.support.PlainListenableActionFuture; import org.elasticsearch.client.IndicesAdminClient; -import org.elasticsearch.client.action.RequestBuilder; +import org.elasticsearch.client.action.ActionRequestBuilder; import org.elasticsearch.client.internal.InternalIndicesAdminClient; /** * */ -public abstract class BaseIndicesRequestBuilder implements RequestBuilder { +public abstract class BaseIndicesRequestBuilder implements ActionRequestBuilder { protected final InternalIndicesAdminClient client; @@ -42,6 +42,11 @@ public abstract class BaseIndicesRequestBuilder execute() { PlainListenableActionFuture future = new PlainListenableActionFuture(request.listenerThreaded(), client.threadPool()); diff --git a/src/main/java/org/elasticsearch/client/action/support/BaseRequestBuilder.java b/src/main/java/org/elasticsearch/client/action/support/BaseRequestBuilder.java index 2066d9ea0cb..c16da2f177e 100644 --- a/src/main/java/org/elasticsearch/client/action/support/BaseRequestBuilder.java +++ b/src/main/java/org/elasticsearch/client/action/support/BaseRequestBuilder.java @@ -25,13 +25,13 @@ import org.elasticsearch.action.ActionResponse; import org.elasticsearch.action.ListenableActionFuture; import org.elasticsearch.action.support.PlainListenableActionFuture; import org.elasticsearch.client.Client; -import org.elasticsearch.client.action.RequestBuilder; +import org.elasticsearch.client.action.ActionRequestBuilder; import org.elasticsearch.client.internal.InternalClient; /** * */ -public abstract class BaseRequestBuilder implements RequestBuilder { +public abstract class BaseRequestBuilder implements ActionRequestBuilder { protected final InternalClient client;