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

package test.fixtures.basic_swift_bean;

import java.util.*;

public class LegacyServiceReactiveAsyncWrapper 
  implements LegacyService.Async {
  private LegacyService.Reactive _delegate;

  public LegacyServiceReactiveAsyncWrapper(LegacyService.Reactive _delegate) {
    
    this._delegate = _delegate;
  }

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

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

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<Map<String, List<Integer>>> getPoints(final Set<String> key, final long legacyStuff) {
      return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.getPoints(key, legacyStuff));
  }

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<Map<String, List<Integer>>> getPoints(
    final Set<String> key,
    final long legacyStuff,
    com.facebook.thrift.client.RpcOptions rpcOptions) {
      return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.getPoints(key,legacyStuff, rpcOptions));
  }

  @java.lang.Override
  public com.google.common.util.concurrent.ListenableFuture<com.facebook.thrift.client.ResponseWrapper<Map<String, List<Integer>>>> getPointsWrapper(
    final Set<String> key,
    final long legacyStuff,
    com.facebook.thrift.client.RpcOptions rpcOptions) {
    return com.facebook.thrift.util.FutureUtil.toListenableFuture(_delegate.getPointsWrapper(key,legacyStuff, rpcOptions));
  }

}
