Interface LiveCommandAnswerBuilder.EventStep<E extends LiveEventFactory>
-
- Type Parameters:
E- the type of the LiveEventFactory to use for buildingEvents
- All Superinterfaces:
LiveCommandAnswerBuilder
- Enclosing interface:
- LiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface LiveCommandAnswerBuilder.EventStep<E extends LiveEventFactory> extends LiveCommandAnswerBuilder
Interface for LiveCommandHandleResults which emitEvents.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.signals.commands.live.base.LiveCommandAnswerBuilder
LiveCommandAnswerBuilder.BuildStep, LiveCommandAnswerBuilder.EventStep<E extends LiveEventFactory>, LiveCommandAnswerBuilder.ModifyCommandResponseStep<R extends LiveCommandResponseFactory,E extends LiveEventFactory>, LiveCommandAnswerBuilder.QueryCommandResponseStep<R extends LiveCommandResponseFactory>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LiveCommandAnswerBuilder.BuildStepwithEvent(Function<E,org.eclipse.ditto.signals.events.base.Event<?>> createEventFunction)Configures theEventconfirming the modifications requested in the incomingCommand.LiveCommandAnswerBuilder.BuildStepwithoutEvent()Configures that noEventis sent for the incomingCommand.
-
-
-
Method Detail
-
withEvent
LiveCommandAnswerBuilder.BuildStep withEvent(Function<E,org.eclipse.ditto.signals.events.base.Event<?>> createEventFunction)
Configures theEventconfirming the modifications requested in the incomingCommand.- Parameters:
createEventFunction- the createEventFunction used to build theEventto be emitted- Returns:
- the next step for building the answer.
- Throws:
NullPointerException- ifcreateEventFunctionisnull.
-
withoutEvent
LiveCommandAnswerBuilder.BuildStep withoutEvent()
Configures that noEventis sent for the incomingCommand.Be careful using this as the sender of the
Commandor another party might expect or wait forEvents.- Returns:
- the next step for building the answer.
-
-