Interface LiveCommandAnswerBuilder.ModifyCommandResponseStep<R extends LiveCommandResponseFactory,E extends LiveEventFactory>
-
- Type Parameters:
R- the type of the LiveCommandResponseFactory to use for buildingCommandResponses.E- the type of the LiveEventFactory to use for buildingEvents.
- All Superinterfaces:
LiveCommandAnswerBuilder
- All Known Subinterfaces:
CreateThingLiveCommandAnswerBuilder,DeleteAttributeLiveCommandAnswerBuilder,DeleteAttributesLiveCommandAnswerBuilder,DeleteFeatureDefinitionLiveCommandAnswerBuilder,DeleteFeatureLiveCommandAnswerBuilder,DeleteFeaturePropertiesLiveCommandAnswerBuilder,DeleteFeaturePropertyLiveCommandAnswerBuilder,DeleteFeaturesLiveCommandAnswerBuilder,DeleteThingLiveCommandAnswerBuilder,ModifyAttributeLiveCommandAnswerBuilder,ModifyAttributesLiveCommandAnswerBuilder,ModifyFeatureDefinitionLiveCommandAnswerBuilder,ModifyFeatureLiveCommandAnswerBuilder,ModifyFeaturePropertiesLiveCommandAnswerBuilder,ModifyFeaturePropertyLiveCommandAnswerBuilder,ModifyFeaturesLiveCommandAnswerBuilder,ModifyThingLiveCommandAnswerBuilder
- Enclosing interface:
- LiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface LiveCommandAnswerBuilder.ModifyCommandResponseStep<R extends LiveCommandResponseFactory,E extends LiveEventFactory> extends LiveCommandAnswerBuilder
Interface for LiveCommandHandleResults which areModifyCommands(changing data).
-
-
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.EventStep<E>withoutResponse()Configures that noCommandResponseis sent for the incomingCommand.LiveCommandAnswerBuilder.EventStep<E>withResponse(Function<R,org.eclipse.ditto.signals.commands.base.CommandResponse<?>> createResponseFunction)Configures the function for creating aCommandResponsefor the incomingCommand.
-
-
-
Method Detail
-
withResponse
LiveCommandAnswerBuilder.EventStep<E> withResponse(Function<R,org.eclipse.ditto.signals.commands.base.CommandResponse<?>> createResponseFunction)
Configures the function for creating aCommandResponsefor the incomingCommand.- Parameters:
createResponseFunction- the function used to build theCommandResponseto be returned.- Returns:
- an EventStep LiveCommandAnswerBuilder in order to configure the
Eventto emit. - Throws:
NullPointerException- ifcreateResponseFunctionisnull.
-
withoutResponse
LiveCommandAnswerBuilder.EventStep<E> withoutResponse()
Configures that noCommandResponseis sent for the incomingCommand.Be careful using this as the sender of the
Commandmight wait for aCommandResponse.- Returns:
- an EventStep LiveCommandAnswerBuilder in order to configure the
Eventto emit
-
-