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

package test.fixtures.interactions;

import java.util.*;

public class InteractWithSharedReactiveBlockingWrapper 
  implements InteractWithShared {
  private final InteractWithShared.Reactive _delegate;

  public InteractWithSharedReactiveBlockingWrapper(InteractWithShared.Reactive _delegate) {
    
    this._delegate = _delegate;
  }

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

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

  @java.lang.Override
  public test.fixtures.another_interactions.DoSomethingResult doSomeSimilarThings() throws org.apache.thrift.TException {
      return doSomeSimilarThingsWrapper(com.facebook.thrift.client.RpcOptions.EMPTY).getData();
  }

  @java.lang.Override
  public test.fixtures.another_interactions.DoSomethingResult doSomeSimilarThings(
        com.facebook.thrift.client.RpcOptions rpcOptions) throws org.apache.thrift.TException {
      return doSomeSimilarThingsWrapper(rpcOptions).getData();
  }

  @java.lang.Override
  public com.facebook.thrift.client.ResponseWrapper<test.fixtures.another_interactions.DoSomethingResult> doSomeSimilarThingsWrapper(
    com.facebook.thrift.client.RpcOptions rpcOptions) throws org.apache.thrift.TException {
      try {
        return _delegate.doSomeSimilarThingsWrapper(rpcOptions).block();
      } catch (Throwable t) {
        throw com.facebook.thrift.util.ExceptionUtil.wrap(t);
      }
  }

  public MyInteraction createMyInteraction() {
      throw new UnsupportedOperationException("Interactions are not yet supported on ReactiveBlockingWrapper Interfaces!");
  }

  public SharedInteraction createSharedInteraction() {
      throw new UnsupportedOperationException("Interactions are not yet supported on ReactiveBlockingWrapper Interfaces!");
  }
}
