com.hexagonkt.handlers.async.Handler
public final class OnHandler<T extends Object> implements Handler<T>
private final Function1<Context<T>, Boolean>
predicate
private final Function1<Context<T>, CompletableFuture<Context<T>>>
callback
OnHandler(Function1<Context<T>, Boolean> predicate, Function1<Context<T>, CompletableFuture<Context<T>>> callback)
Function1<Context<T>, Boolean>
getPredicate()
Function1<Context<T>, CompletableFuture<Context<T>>>
getCallback()
CompletableFuture<Context<T>>
process(Context<T> context)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Function1<Context<T>, Boolean> getPredicate()
Function1<Context<T>, CompletableFuture<Context<T>>> getCallback()
CompletableFuture<Context<T>> process(Context<T> context)