Interface ResponseDeserializationStep1Builder

    • Method Detail

      • deserializingUseCaseResponsesOfType

        default <T> ResponseDeserializationStep2Builder<T> deserializingUseCaseResponsesOfType​(Class<T> type)
        Enters a fluent builder that configures a Demapifier that will be used to deserialize a Map from the MessageBus to the return value of the use case invocation.
        Type Parameters:
        T - the type of the use case parameter
        Parameters:
        type - the class of use case parameters that will be deserialized by the Demapifier
        Returns:
        the next step in the fluent builder
      • deserializingUseCaseResponsesThat

        default <T> ResponseDeserializationStep2Builder<T> deserializingUseCaseResponsesThat​(BiPredicate<Class<?>,​Object> filter)
        Enters a fluent builder that configures a Demapifier that will be used to deserialize a Map from the * MessageBus to the return value of the use case invocation.
        Type Parameters:
        T - the type of the use case response
        Parameters:
        filter - a BiPredicate that returns true if the Demapifier should be used
        Returns:
        the next step in the fluent builder
      • deserializingUseCaseResponsesOfThat

        <T> ResponseDeserializationStep2Builder<T> deserializingUseCaseResponsesOfThat​(BiPredicate<Class<?>,​Object> filter)
        Enters a fluent builder that configures a Demapifier that will be used to deserialize a Map from the MessageBus to the return value of the use case invocation, if the object matches the provided filter.
        Type Parameters:
        T - the type of the use case response
        Parameters:
        filter - a BiPredicate that returns true if the Demapifier should be used
        Returns:
        the next step in the fluent builder
      • throwAnExceptionByDefaultIfNoResponseDeserializationCanBeApplied

        default FinalStepBuilder throwAnExceptionByDefaultIfNoResponseDeserializationCanBeApplied()
        Configures to throw an exception if no Demapifier configured matches the response.
        Returns:
        the next step in the fluent builder
      • deserializeUseCaseResponsesPerDefault

        FinalStepBuilder deserializeUseCaseResponsesPerDefault​(Demapifier<Object> mapper)
        Configures the default Demapifier that will be used to deserialize a use case response if no Demapifier configured matches the response.
        Parameters:
        mapper - a Demapifier
        Returns:
        the next step in the fluent builder