Package org.elasticsearch.client
Class CcrClient
- java.lang.Object
-
- org.elasticsearch.client.CcrClient
-
public final class CcrClient extends java.lang.Object
A wrapper for theRestHighLevelClient
that provides methods for accessing the Elastic ccr related methodsSee the X-Pack Rollup APIs on elastic.co for more information.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcknowledgedResponse
pauseFollow(PauseFollowRequest request, RequestOptions options)
Instructs a follower index the pause the following of a leader index.void
pauseFollowAsync(PauseFollowRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously instruct a follower index the pause the following of a leader index.
-
-
-
Method Detail
-
pauseFollow
public AcknowledgedResponse pauseFollow(PauseFollowRequest request, RequestOptions options) throws java.io.IOException
Instructs a follower index the pause the following of a leader index. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
pauseFollowAsync
public void pauseFollowAsync(PauseFollowRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously instruct a follower index the pause the following of a leader index. See the docs for more.- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized
-
-