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

package test.fixtures.basicannotations;

import com.facebook.thrift.client.*;
import java.util.*;

public class MyServicePrioParentAsyncReactiveWrapper 
    implements MyServicePrioParent.Reactive {
    private final MyServicePrioParent.Async _delegate;

    public MyServicePrioParentAsyncReactiveWrapper(MyServicePrioParent.Async _delegate) {
        
        this._delegate = _delegate;
    }

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

    @java.lang.Override
    public reactor.core.publisher.Mono<Void> ping() {
        return com.facebook.thrift.util.FutureUtil.toMono(() -> _delegate.ping());
    }

    @java.lang.Override
    public reactor.core.publisher.Mono<Void> pong() {
        return com.facebook.thrift.util.FutureUtil.toMono(() -> _delegate.pong());
    }

}
