All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.reactiverse.elasticsearch.client.reactivex.IndexLifecycleClient Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2014 Red Hat, Inc.
 *
 * Red Hat licenses this file to you under the Apache License, version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License.  You may obtain a copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package io.reactiverse.elasticsearch.client.reactivex;

import io.vertx.reactivex.RxHelper;
import io.vertx.reactivex.ObservableHelper;
import io.vertx.reactivex.FlowableHelper;
import io.vertx.reactivex.impl.AsyncResultMaybe;
import io.vertx.reactivex.impl.AsyncResultSingle;
import io.vertx.reactivex.impl.AsyncResultCompletable;
import io.vertx.reactivex.WriteStreamObserver;
import io.vertx.reactivex.WriteStreamSubscriber;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;


@RxGen(io.reactiverse.elasticsearch.client.IndexLifecycleClient.class)
public class IndexLifecycleClient {

  @Override
  public String toString() {
    return delegate.toString();
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    IndexLifecycleClient that = (IndexLifecycleClient) o;
    return delegate.equals(that.delegate);
  }
  
  @Override
  public int hashCode() {
    return delegate.hashCode();
  }

  public static final TypeArg __TYPE_ARG = new TypeArg<>(    obj -> new IndexLifecycleClient((io.reactiverse.elasticsearch.client.IndexLifecycleClient) obj),
    IndexLifecycleClient::getDelegate
  );

  private final io.reactiverse.elasticsearch.client.IndexLifecycleClient delegate;
  
  public IndexLifecycleClient(io.reactiverse.elasticsearch.client.IndexLifecycleClient delegate) {
    this.delegate = delegate;
  }

  public IndexLifecycleClient(Object delegate) {
    this.delegate = (io.reactiverse.elasticsearch.client.IndexLifecycleClient)delegate;
  }

  public io.reactiverse.elasticsearch.client.IndexLifecycleClient getDelegate() {
    return delegate;
  }

  public void getLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.GetLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.getLifecyclePolicyAsync(request, options, handler);
  }

  public void getLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.GetLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    getLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxGetLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.GetLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      getLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void putLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.PutLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.putLifecyclePolicyAsync(request, options, handler);
  }

  public void putLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.PutLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    putLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxPutLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.PutLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      putLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void deleteLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.DeleteLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.deleteLifecyclePolicyAsync(request, options, handler);
  }

  public void deleteLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.DeleteLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    deleteLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxDeleteLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.DeleteLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      deleteLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void removeIndexLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.RemoveIndexLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.removeIndexLifecyclePolicyAsync(request, options, handler);
  }

  public void removeIndexLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.RemoveIndexLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    removeIndexLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxRemoveIndexLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.RemoveIndexLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      removeIndexLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void startILMAsync(org.elasticsearch.client.indexlifecycle.StartILMRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.startILMAsync(request, options, handler);
  }

  public void startILMAsync(org.elasticsearch.client.indexlifecycle.StartILMRequest request, org.elasticsearch.client.RequestOptions options) {
    startILMAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxStartILMAsync(org.elasticsearch.client.indexlifecycle.StartILMRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      startILMAsync(request, options, $handler);
    });
  }

  public void stopILMAsync(org.elasticsearch.client.indexlifecycle.StopILMRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.stopILMAsync(request, options, handler);
  }

  public void stopILMAsync(org.elasticsearch.client.indexlifecycle.StopILMRequest request, org.elasticsearch.client.RequestOptions options) {
    stopILMAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxStopILMAsync(org.elasticsearch.client.indexlifecycle.StopILMRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      stopILMAsync(request, options, $handler);
    });
  }

  public void lifecycleManagementStatusAsync(org.elasticsearch.client.indexlifecycle.LifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.lifecycleManagementStatusAsync(request, options, handler);
  }

  public void lifecycleManagementStatusAsync(org.elasticsearch.client.indexlifecycle.LifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) {
    lifecycleManagementStatusAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxLifecycleManagementStatusAsync(org.elasticsearch.client.indexlifecycle.LifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      lifecycleManagementStatusAsync(request, options, $handler);
    });
  }

  public void explainLifecycleAsync(org.elasticsearch.client.indexlifecycle.ExplainLifecycleRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.explainLifecycleAsync(request, options, handler);
  }

  public void explainLifecycleAsync(org.elasticsearch.client.indexlifecycle.ExplainLifecycleRequest request, org.elasticsearch.client.RequestOptions options) {
    explainLifecycleAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxExplainLifecycleAsync(org.elasticsearch.client.indexlifecycle.ExplainLifecycleRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      explainLifecycleAsync(request, options, $handler);
    });
  }

  public void retryLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.RetryLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.retryLifecyclePolicyAsync(request, options, handler);
  }

  public void retryLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.RetryLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    retryLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxRetryLifecyclePolicyAsync(org.elasticsearch.client.indexlifecycle.RetryLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      retryLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void getSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.GetSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.getSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public void getSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.GetSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    getSnapshotLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxGetSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.GetSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      getSnapshotLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void putSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.PutSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.putSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public void putSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.PutSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    putSnapshotLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxPutSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.PutSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      putSnapshotLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void deleteSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.DeleteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.deleteSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public void deleteSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.DeleteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    deleteSnapshotLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxDeleteSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.DeleteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      deleteSnapshotLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void executeSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.ExecuteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.executeSnapshotLifecyclePolicyAsync(request, options, handler);
  }

  public void executeSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.ExecuteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) {
    executeSnapshotLifecyclePolicyAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxExecuteSnapshotLifecyclePolicyAsync(org.elasticsearch.client.slm.ExecuteSnapshotLifecyclePolicyRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      executeSnapshotLifecyclePolicyAsync(request, options, $handler);
    });
  }

  public void executeSnapshotLifecycleRetentionAsync(org.elasticsearch.client.slm.ExecuteSnapshotLifecycleRetentionRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.executeSnapshotLifecycleRetentionAsync(request, options, handler);
  }

  public void executeSnapshotLifecycleRetentionAsync(org.elasticsearch.client.slm.ExecuteSnapshotLifecycleRetentionRequest request, org.elasticsearch.client.RequestOptions options) {
    executeSnapshotLifecycleRetentionAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxExecuteSnapshotLifecycleRetentionAsync(org.elasticsearch.client.slm.ExecuteSnapshotLifecycleRetentionRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      executeSnapshotLifecycleRetentionAsync(request, options, $handler);
    });
  }

  public void getSnapshotLifecycleStatsAsync(org.elasticsearch.client.slm.GetSnapshotLifecycleStatsRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.getSnapshotLifecycleStatsAsync(request, options, handler);
  }

  public void getSnapshotLifecycleStatsAsync(org.elasticsearch.client.slm.GetSnapshotLifecycleStatsRequest request, org.elasticsearch.client.RequestOptions options) {
    getSnapshotLifecycleStatsAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxGetSnapshotLifecycleStatsAsync(org.elasticsearch.client.slm.GetSnapshotLifecycleStatsRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      getSnapshotLifecycleStatsAsync(request, options, $handler);
    });
  }

  public void startSLMAsync(org.elasticsearch.client.slm.StartSLMRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.startSLMAsync(request, options, handler);
  }

  public void startSLMAsync(org.elasticsearch.client.slm.StartSLMRequest request, org.elasticsearch.client.RequestOptions options) {
    startSLMAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxStartSLMAsync(org.elasticsearch.client.slm.StartSLMRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      startSLMAsync(request, options, $handler);
    });
  }

  public void stopSLMAsync(org.elasticsearch.client.slm.StopSLMRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.stopSLMAsync(request, options, handler);
  }

  public void stopSLMAsync(org.elasticsearch.client.slm.StopSLMRequest request, org.elasticsearch.client.RequestOptions options) {
    stopSLMAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxStopSLMAsync(org.elasticsearch.client.slm.StopSLMRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      stopSLMAsync(request, options, $handler);
    });
  }

  public void getSLMStatusAsync(org.elasticsearch.client.slm.SnapshotLifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options, io.vertx.core.Handler> handler) { 
    delegate.getSLMStatusAsync(request, options, handler);
  }

  public void getSLMStatusAsync(org.elasticsearch.client.slm.SnapshotLifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) {
    getSLMStatusAsync(request, options, ar -> { });
  }

  public io.reactivex.Single rxGetSLMStatusAsync(org.elasticsearch.client.slm.SnapshotLifecycleManagementStatusRequest request, org.elasticsearch.client.RequestOptions options) { 
    return AsyncResultSingle.toSingle($handler -> {
      getSLMStatusAsync(request, options, $handler);
    });
  }

  public static IndexLifecycleClient newInstance(io.reactiverse.elasticsearch.client.IndexLifecycleClient arg) {
    return arg != null ? new IndexLifecycleClient(arg) : null;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy