Interface CallingBuilder<U>

    • Method Detail

      • calling

        default Step1Builder calling​(BiFunction<U,​Object,​Map<String,​Object>> caller)
        The given BiFunction gets access to the current use case instance and the event. It should invoke the use case and return the serialized return value.
        Parameters:
        caller - the BiFunction invoking the use case
        Returns:
        the next step in the fluent builder interface
      • callingVoid

        default Step1Builder callingVoid​(BiConsumer<U,​Object> caller)
        This method allows for calling use cases without a return value. The BiConsumer gets access to the current use case instance and event.
        Parameters:
        caller - the BiConsumer invoking the use case
        Returns:
        the next step in the fluent builder interface
      • callingTheSingleUseCaseMethod

        Step1Builder callingTheSingleUseCaseMethod()
        This method invokes the only public method on the current use case instance. All parameters of the method are deserialized as defined by the UseCaseInvocationBuilder and the optional return value is serialized using the serializing definitions of the UseCaseInvocationBuilder.
        Returns:
        the next step in the fluent builder interface
      • callingBy

        Step1Builder callingBy​(Caller<U> caller)
        With this method the use case is invoked as defined in the given Caller.
        Parameters:
        caller - the caller to use
        Returns:
        the next step in the fluent builder interface