Interface LiveCommandAnswerBuilder.QueryCommandResponseStep<R extends LiveCommandResponseFactory>

    • Method Detail

      • withResponse

        LiveCommandAnswerBuilder.BuildStep withResponse​(Function<R,​org.eclipse.ditto.signals.commands.base.CommandResponse<?>> createResponseFunction)
        Configures the function for creating a CommandResponse for the incoming Command.
        Parameters:
        createResponseFunction - the function used to build the CommandResponse to be returned.
        Returns:
        the next step for building the answer.
        Throws:
        NullPointerException - if createResponseFunction is null.
      • withoutResponse

        LiveCommandAnswerBuilder.BuildStep withoutResponse()
        Configures that no CommandResponse is sent for the incoming Command.

        Be careful using this as the sender of the Command might wait for a CommandResponse.

        Returns:
        the next step for building the answer.