/**
 * Autogenerated by Thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */

package test.fixtures.basic;

import java.util.*;

public class FooServiceReactiveAsyncWrapper 
  implements FooService.Async {
  private FooService.Reactive _delegate;

  public FooServiceReactiveAsyncWrapper(FooService.Reactive _delegate) {
    
    this._delegate = _delegate;
  }

  public FooServiceReactiveAsyncWrapper(org.apache.thrift.ProtocolId _protocolId, reactor.core.publisher.Mono<? extends com.facebook.thrift.client.RpcClient> _rpcClient, Map<String, String> _headers, Map<String, String> _persistentHeaders) {
    this(new FooServiceReactiveClient(_protocolId, _rpcClient, _headers, _persistentHeaders));
  }

  @java.lang.Override
  public void close() {
    _delegate.dispose();
  }

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<Void> simpleRpc() {
      return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.simpleRpc());
  }

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<Void> simpleRpc(
    com.facebook.thrift.client.RpcOptions rpcOptions) {
      return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.simpleRpc( rpcOptions));
  }

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<com.facebook.thrift.client.ResponseWrapper<Void>> simpleRpcWrapper(
    com.facebook.thrift.client.RpcOptions rpcOptions) {
    return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.simpleRpcWrapper( rpcOptions));
  }

}
