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
      • 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