C - the callback typeA - the primary argument typepublic static final class LambdaSafe.Callback<C,A> extends LambdaSafe.LambdaSafeCallback<C,A,LambdaSafe.Callback<C,A>>
| Modifier and Type | Method and Description | 
|---|---|
void | 
invoke(Consumer<C> invoker)
Invoke the callback instance where the callback method returns void. 
 | 
<R> LambdaSafe.InvocationResult<R> | 
invokeAnd(Function<C,R> invoker)
Invoke the callback instance where the callback method returns a result. 
 | 
invoke, withLogger, withLoggerpublic void invoke(Consumer<C> invoker)
invoker - the invoker used to invoke the callbackpublic <R> LambdaSafe.InvocationResult<R> invokeAnd(Function<C,R> invoker)
R - the result typeinvoker - the invoker used to invoke the callbackLambdaSafe.InvocationResult.noResult()
 if the callback was not invoked)