public static <T> Single<T> rxGetProxy(ServiceDiscovery discovery, Class<T> clientClass, Function<Record, Boolean> filter) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<>(handler -> EventBusService.getServiceProxy(discovery, filter, clientClass, handler) ); } }
public Single<FormsAdapterResponse> rxProcess(FormsAdapterRequest request) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<FormsAdapterResponse>(handler -> { process(request, handler); }); }
public Single<AdapterResponse> rxProcess(AdapterRequest request) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<AdapterResponse>(handler -> { process(request, handler); }); }
/** * Gets the portfolio. * @return */ public Single<Portfolio> rxGetPortfolio() { return new io.vertx.reactivex.core.impl.AsyncResultSingle<Portfolio>(handler -> { getPortfolio(handler); }); }
/** * Sell `amount` shares of the given shares (quote). * @param amount the amount * @param quote the last quote * @return */ public Single<Portfolio> rxSell(int amount, JsonObject quote) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<Portfolio>(handler -> { sell(amount, quote, handler); }); }
public Single<ClientResponse> rxProcess(ClientRequest request) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<ClientResponse>(handler -> { process(request, handler); }); }
public Single<KnotContext> rxProcess(KnotContext knotContext) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<KnotContext>(handler -> { process(knotContext, handler); }); }
public Single<DataSourceAdapterResponse> rxProcess(DataSourceAdapterRequest request) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<DataSourceAdapterResponse>(handler -> { process(request, handler); }); }
/** * Buy `amount` shares of the given shares (quote). * @param amount the amount * @param quote the last quote * @return */ public Single<Portfolio> rxBuy(int amount, JsonObject quote) { return new io.vertx.reactivex.core.impl.AsyncResultSingle<Portfolio>(handler -> { buy(amount, quote, handler); }); }
/** * Evaluates the current value of the portfolio. * @return */ public Single<Double> rxEvaluate() { return new io.vertx.reactivex.core.impl.AsyncResultSingle<Double>(handler -> { evaluate(handler); }); }