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(java.util.function.Consumer<C> invoker)Invoke the callback instance where the callback method returns void. | 
| <R> LambdaSafe.InvocationResult<R> | invokeAnd(java.util.function.Function<C,R> invoker)Invoke the callback instance where the callback method returns a result. | 
invoke, withLogger, withLoggerpublic void invoke(java.util.function.Consumer<C> invoker)
invoker - the invoker used to invoke the callbackpublic <R> LambdaSafe.InvocationResult<R> invokeAnd(java.util.function.Function<C,R> invoker)
R - the result typeinvoker - the invoker used to invoke the callbackLambdaSafe.InvocationResult.noResult()
 if the callback was not invoked)