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

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

There is a newer version: 0.9.0-ec7.10.1
Show 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 java.util.Map;
import io.reactivex.Observable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import io.reactivex.Completable;
import io.reactivex.Maybe;
import org.elasticsearch.client.rollup.GetRollupJobResponse;
import org.elasticsearch.client.rollup.GetRollupJobRequest;
import org.elasticsearch.client.rollup.GetRollupIndexCapsRequest;
import org.elasticsearch.client.rollup.StopRollupJobRequest;
import org.elasticsearch.client.rollup.GetRollupIndexCapsResponse;
import org.elasticsearch.client.rollup.StopRollupJobResponse;
import org.elasticsearch.client.rollup.DeleteRollupJobRequest;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.rollup.StartRollupJobResponse;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.core.AcknowledgedResponse;
import org.elasticsearch.client.rollup.PutRollupJobRequest;
import org.elasticsearch.client.rollup.GetRollupCapsRequest;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import org.elasticsearch.client.rollup.StartRollupJobRequest;
import org.elasticsearch.client.rollup.GetRollupCapsResponse;


@io.vertx.lang.rx.RxGen(io.reactiverse.elasticsearch.client.RollupClient.class)
public class RollupClient {

  @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;
    RollupClient that = (RollupClient) o;
    return delegate.equals(that.delegate);
  }
  
  @Override
  public int hashCode() {
    return delegate.hashCode();
  }

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

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

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

  public void putRollupJobAsync(PutRollupJobRequest request, RequestOptions options, Handler> handler) { 
    delegate.putRollupJobAsync(request, options, handler);
  }

  public Single rxPutRollupJobAsync(PutRollupJobRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      putRollupJobAsync(request, options, handler);
    });
  }

  public void startRollupJobAsync(StartRollupJobRequest request, RequestOptions options, Handler> handler) { 
    delegate.startRollupJobAsync(request, options, handler);
  }

  public Single rxStartRollupJobAsync(StartRollupJobRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      startRollupJobAsync(request, options, handler);
    });
  }

  public void stopRollupJobAsync(StopRollupJobRequest request, RequestOptions options, Handler> handler) { 
    delegate.stopRollupJobAsync(request, options, handler);
  }

  public Single rxStopRollupJobAsync(StopRollupJobRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      stopRollupJobAsync(request, options, handler);
    });
  }

  public void deleteRollupJobAsync(DeleteRollupJobRequest request, RequestOptions options, Handler> handler) { 
    delegate.deleteRollupJobAsync(request, options, handler);
  }

  public Single rxDeleteRollupJobAsync(DeleteRollupJobRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      deleteRollupJobAsync(request, options, handler);
    });
  }

  public void getRollupJobAsync(GetRollupJobRequest request, RequestOptions options, Handler> handler) { 
    delegate.getRollupJobAsync(request, options, handler);
  }

  public Single rxGetRollupJobAsync(GetRollupJobRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      getRollupJobAsync(request, options, handler);
    });
  }

  public void searchAsync(SearchRequest request, RequestOptions options, Handler> handler) { 
    delegate.searchAsync(request, options, handler);
  }

  public Single rxSearchAsync(SearchRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      searchAsync(request, options, handler);
    });
  }

  public void getRollupCapabilitiesAsync(GetRollupCapsRequest request, RequestOptions options, Handler> handler) { 
    delegate.getRollupCapabilitiesAsync(request, options, handler);
  }

  public Single rxGetRollupCapabilitiesAsync(GetRollupCapsRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      getRollupCapabilitiesAsync(request, options, handler);
    });
  }

  public void getRollupIndexCapabilitiesAsync(GetRollupIndexCapsRequest request, RequestOptions options, Handler> handler) { 
    delegate.getRollupIndexCapabilitiesAsync(request, options, handler);
  }

  public Single rxGetRollupIndexCapabilitiesAsync(GetRollupIndexCapsRequest request, RequestOptions options) { 
    return io.vertx.reactivex.impl.AsyncResultSingle.toSingle(handler -> {
      getRollupIndexCapabilitiesAsync(request, options, handler);
    });
  }


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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy