Class LambdaSafe.LambdaSafeCallback<C, A, SELF extends LambdaSafe.LambdaSafeCallback<C,A,SELF>>  
java.lang.Object
org.springframework.boot.util.LambdaSafe.LambdaSafeCallback<C,A,SELF>  
- Type Parameters:
- C- the callback type
- A- the primary argument type
- SELF- the self class reference
- Direct Known Subclasses:
- LambdaSafe.Callback,- LambdaSafe.Callbacks
- Enclosing class:
- LambdaSafe
protected abstract static class LambdaSafe.LambdaSafeCallback<C, A, SELF extends LambdaSafe.LambdaSafeCallback<C,A,SELF>>  
extends Object
Abstract base class for lambda safe callbacks.
- Since:
- 2.0.0
- 
Method SummaryModifier and TypeMethodDescriptionprotected final <R> LambdaSafe.InvocationResult<R> withFilter(LambdaSafe.Filter<C, A> filter) Use a specific filter to determine when a callback should apply.withLogger(Class<?> loggerSource) Use the specified logger source to report any lambda failures.withLogger(org.apache.commons.logging.Log logger) Use the specified logger to report any lambda failures.
- 
Method Details- 
withLogger
- 
withLoggerUse the specified logger to report any lambda failures.- Parameters:
- logger- the logger to use
- Returns:
- this instance
 
- 
withFilterUse a specific filter to determine when a callback should apply. If no explicit filter is set filter will be attempted using the generic type on the callback type.- Parameters:
- filter- the filter to use
- Returns:
- this instance
- Since:
- 3.4.8
 
- 
invokeprotected final <R> LambdaSafe.InvocationResult<R> invoke(C callbackInstance, Supplier<@Nullable R> supplier) 
 
-