fixed hlrc method signatures
This commit is contained in:
parent
33bbc4798b
commit
084bda6d32
|
@ -73,11 +73,12 @@ public final class EnrichClient {
|
||||||
* @param request the {@link PutPolicyRequest}
|
* @param request the {@link PutPolicyRequest}
|
||||||
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
|
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
|
||||||
* @param listener the listener to be notified upon request completion
|
* @param listener the listener to be notified upon request completion
|
||||||
|
* @return cancellable that may be used to cancel the request
|
||||||
*/
|
*/
|
||||||
public void putPolicyAsync(PutPolicyRequest request,
|
public Cancellable putPolicyAsync(PutPolicyRequest request,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
ActionListener<AcknowledgedResponse> listener) {
|
ActionListener<AcknowledgedResponse> listener) {
|
||||||
restHighLevelClient.performRequestAsyncAndParseEntity(
|
return restHighLevelClient.performRequestAsyncAndParseEntity(
|
||||||
request,
|
request,
|
||||||
EnrichRequestConverters::putPolicy,
|
EnrichRequestConverters::putPolicy,
|
||||||
options,
|
options,
|
||||||
|
@ -117,11 +118,12 @@ public final class EnrichClient {
|
||||||
* @param request the {@link DeletePolicyRequest}
|
* @param request the {@link DeletePolicyRequest}
|
||||||
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
|
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
|
||||||
* @param listener the listener to be notified upon request completion
|
* @param listener the listener to be notified upon request completion
|
||||||
|
* @return cancellable that may be used to cancel the request
|
||||||
*/
|
*/
|
||||||
public void deletePolicyAsync(DeletePolicyRequest request,
|
public Cancellable deletePolicyAsync(DeletePolicyRequest request,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
ActionListener<AcknowledgedResponse> listener) {
|
ActionListener<AcknowledgedResponse> listener) {
|
||||||
restHighLevelClient.performRequestAsyncAndParseEntity(
|
return restHighLevelClient.performRequestAsyncAndParseEntity(
|
||||||
request,
|
request,
|
||||||
EnrichRequestConverters::deletePolicy,
|
EnrichRequestConverters::deletePolicy,
|
||||||
options,
|
options,
|
||||||
|
@ -161,11 +163,12 @@ public final class EnrichClient {
|
||||||
* @param request the {@link PutPolicyRequest}
|
* @param request the {@link PutPolicyRequest}
|
||||||
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
|
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
|
||||||
* @param listener the listener to be notified upon request completion
|
* @param listener the listener to be notified upon request completion
|
||||||
|
* @return cancellable that may be used to cancel the request
|
||||||
*/
|
*/
|
||||||
public void getPolicyAsync(GetPolicyRequest request,
|
public Cancellable getPolicyAsync(GetPolicyRequest request,
|
||||||
RequestOptions options,
|
RequestOptions options,
|
||||||
ActionListener<GetPolicyResponse> listener) {
|
ActionListener<GetPolicyResponse> listener) {
|
||||||
restHighLevelClient.performRequestAsyncAndParseEntity(
|
return restHighLevelClient.performRequestAsyncAndParseEntity(
|
||||||
request,
|
request,
|
||||||
EnrichRequestConverters::getPolicy,
|
EnrichRequestConverters::getPolicy,
|
||||||
options,
|
options,
|
||||||
|
|
Loading…
Reference in New Issue