C - the callback typeA - the primary argument typeSELF - the self class referenceprotected abstract static class LambdaSafe.LambdaSafeCallback<C,A,SELF extends LambdaSafe.LambdaSafeCallback<C,A,SELF>> extends Object
| Modifier and Type | Method and Description |
|---|---|
protected <R> LambdaSafe.InvocationResult<R> |
invoke(C callbackInstance,
Supplier<R> supplier) |
SELF |
withLogger(Class<?> loggerSource)
Use the specified logger source to report any lambda failures.
|
SELF |
withLogger(Log logger)
Use the specified logger to report any lambda failures.
|
public SELF withLogger(Class<?> loggerSource)
loggerSource - the logger source to usepublic SELF withLogger(Log logger)
logger - the logger to useprotected final <R> LambdaSafe.InvocationResult<R> invoke(C callbackInstance, Supplier<R> supplier)