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

package test.fixtures.basicannotations;

import java.util.*;

public class BadServiceReactiveAsyncWrapper 
  implements BadService.Async {
  private BadService.Reactive _delegate;

  public BadServiceReactiveAsyncWrapper(BadService.Reactive _delegate) {
    
    this._delegate = _delegate;
  }

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

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

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

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

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

  public class BadInteractionImpl implements BadInteraction {
    @java.lang.Override
    public com.google.common.util.concurrent.ListenableFuture<Void> foo() {
        throw new UnsupportedOperationException("Interactions are not yet supported on ReactiveAsyncWrapper Interfaces!");
    }

    @java.lang.Override
    public com.google.common.util.concurrent.ListenableFuture<Void> foo(
      com.facebook.thrift.client.RpcOptions rpcOptions) {
        throw new UnsupportedOperationException("Interactions are not yet supported on ReactiveAsyncWrapper Interfaces!");
    }

    @java.lang.Override
    public com.google.common.util.concurrent.ListenableFuture<com.facebook.thrift.client.ResponseWrapper<Void>> fooWrapper(
      com.facebook.thrift.client.RpcOptions rpcOptions) {
      throw new UnsupportedOperationException("Interactions are not yet supported on ReactiveAsyncWrapper Interfaces!");
    }

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

  public BadInteraction createBadInteraction() {
      return new BadInteractionImpl();
  }
}
