Interface LiveCommandAnswerBuilder.EventStep<E extends LiveEventFactory>

    • Method Detail

      • withEvent

        LiveCommandAnswerBuilder.BuildStep withEvent​(Function<E,​org.eclipse.ditto.signals.events.base.Event<?>> createEventFunction)
        Configures the Event confirming the modifications requested in the incoming Command.
        Parameters:
        createEventFunction - the createEventFunction used to build the Event to be emitted
        Returns:
        the next step for building the answer.
        Throws:
        NullPointerException - if createEventFunction is null.
      • withoutEvent

        LiveCommandAnswerBuilder.BuildStep withoutEvent()
        Configures that no Event is sent for the incoming Command.

        Be careful using this as the sender of the Command or another party might expect or wait for Events.

        Returns:
        the next step for building the answer.