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

package dev.test.namespace_from_package.module;

import java.util.*;

public class TestServiceReactiveAsyncWrapper 
  implements TestService.Async {
  private TestService.Reactive _delegate;

  public TestServiceReactiveAsyncWrapper(TestService.Reactive _delegate) {
    
    this._delegate = _delegate;
  }

  public TestServiceReactiveAsyncWrapper(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 TestServiceReactiveClient(_protocolId, _rpcClient, _headers, _persistentHeaders));
  }

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

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<Long> init(final long int1) {
      return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.init(int1));
  }

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<Long> init(
    final long int1,
    com.facebook.thrift.client.RpcOptions rpcOptions) {
      return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.init(int1, rpcOptions));
  }

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<com.facebook.thrift.client.ResponseWrapper<Long>> initWrapper(
    final long int1,
    com.facebook.thrift.client.RpcOptions rpcOptions) {
    return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.initWrapper(int1, rpcOptions));
  }

}
