Class VertxFutures
java.lang.Object
com.hiddenswitch.spellsource.util.VertxFutures
public final class VertxFutures
extends java.lang.Object
Vert.x future utilities.
- 
Method SummaryModifier and Type Method Description static <T, U> java.util.function.BiConsumer<T,java.lang.Throwable>convertHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<U>> handler, java.util.function.Function<T,U> converter, io.vertx.core.Context context)Converts a return value.static <T> java.util.function.BiConsumer<T,java.lang.Throwable>resultHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler, io.vertx.core.Context context)Wraps a Vert.x handler.static <T> java.util.function.BiConsumer<T,java.lang.Throwable>voidHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler, io.vertx.core.Context context)Wraps a void Vert.x handler.
- 
Method Details- 
voidHandlerpublic static <T> java.util.function.BiConsumer<T,java.lang.Throwable> voidHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler, io.vertx.core.Context context)Wraps a void Vert.x handler.
- 
resultHandlerpublic static <T> java.util.function.BiConsumer<T,java.lang.Throwable> resultHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler, io.vertx.core.Context context)Wraps a Vert.x handler.
- 
convertHandlerpublic static <T, U> java.util.function.BiConsumer<T,java.lang.Throwable> convertHandler(io.vertx.core.Handler<io.vertx.core.AsyncResult<U>> handler, java.util.function.Function<T,U> converter, io.vertx.core.Context context)Converts a return value.
 
-