C
- the callback typeA
- the primary argument typepublic static final class LambdaSafe.Callbacks<C,A> extends LambdaSafe.LambdaSafeCallback<C,A,LambdaSafe.Callbacks<C,A>>
Modifier and Type | Method and Description |
---|---|
void |
invoke(Consumer<C> invoker)
Invoke the callback instances where the callback method returns void.
|
<R> Stream<R> |
invokeAnd(Function<C,R> invoker)
Invoke the callback instances where the callback method returns a result.
|
invoke, withLogger, withLogger
public void invoke(Consumer<C> invoker)
invoker
- the invoker used to invoke the callbackpublic <R> Stream<R> invokeAnd(Function<C,R> invoker)
R
- the result typeinvoker
- the invoker used to invoke the callbackCopyright © 2019 Pivotal Software, Inc.. All rights reserved.