Package dev.getelements.elements.rt
Interface ResultAcceptor<T>
public interface ResultAcceptor<T>
Provides a means to accept results returned by instances of
MethodDispatcher
-
Method Summary
-
Method Details
-
dispatch
Calling calling this method completes the dispatch tho th underlyingResource
's method and will place the response of the method call into the providedConsumer<T>
. Calling this should kick off a new task. If this method returns, then it has succeeded in scheduling the task. It will throw an exception if it doesn't and will not invoke the suppliedConsumer<Throwable>
.
-