@Override public void configure(final Env env, final Config conf, final Binder binder) { env.router() .map(reactor(flux, mono)); }
@Override public void configure(final Env env, final Config conf, final Binder binder) { // dump rx.* as system properties conf.getConfig("rx") .withoutPath("schedulers").entrySet() .forEach( e -> System.setProperty("rx." + e.getKey(), e.getValue().unwrapped().toString())); Map<String, Executor> executors = new HashMap<>(); super.configure(env, conf, binder, executors::put); env.router() .map(rx(observable, single, completable)); /** * Side effects of global/evil static state. Hack to turn off some of this errors. */ trySchedulerHook(executors); // shutdown schedulers: silent shutdown in dev mode between app reloads env.onStop(() -> { try { Schedulers.shutdown(); } catch (Throwable ex) { log.debug("Schedulers.shutdown() resulted in error", ex); } }); }
.map(mapper());
.map(new CassandraMapper());
@Override public void configure(final Env env, final Config conf, final Binder binder) { env.router() .map(reactor(flux, mono)); }
@Override public void configure(final Env env, final Config conf, final Binder binder) { // dump rx.* as system properties conf.getConfig("rx") .withoutPath("schedulers").entrySet() .forEach( e -> System.setProperty("rx." + e.getKey(), e.getValue().unwrapped().toString())); Map<String, Executor> executors = new HashMap<>(); super.configure(env, conf, binder, executors::put); env.router() .map(rx(observable, single, completable)); /** * Side effects of global/evil static state. Hack to turn off some of this errors. */ trySchedulerHook(executors); // shutdown schedulers: silent shutdown in dev mode between app reloads env.onStop(() -> { try { Schedulers.shutdown(); } catch (Throwable ex) { log.debug("Schedulers.shutdown() resulted in error", ex); } }); }
.map(mapper());
.map(new CassandraMapper());