org.springframework.boot.util

Class LambdaSafe.Callback<C,A>

    • Method Detail

      • invoke

        public void invoke(Consumer<C> invoker)
        Invoke the callback instance where the callback method returns void.
        Parameters:
        invoker - the invoker used to invoke the callback
      • invokeAnd

        public <R> LambdaSafe.InvocationResult<R> invokeAnd(Function<C,R> invoker)
        Invoke the callback instance where the callback method returns a result.
        Type Parameters:
        R - the result type
        Parameters:
        invoker - the invoker used to invoke the callback
        Returns:
        the result of the invocation (may be LambdaSafe.InvocationResult.noResult() if the callback was not invoked)

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.