Interface LiveCommandAnswerBuilder.ModifyCommandResponseStep<R extends LiveCommandResponseFactory,E extends LiveEventFactory>
-
- Type Parameters:
R
- the type of the LiveCommandResponseFactory to use for buildingCommandResponse
s.E
- the type of the LiveEventFactory to use for buildingEvent
s.
- All Superinterfaces:
LiveCommandAnswerBuilder
- All Known Subinterfaces:
CreateThingLiveCommandAnswerBuilder
,DeleteAttributeLiveCommandAnswerBuilder
,DeleteAttributesLiveCommandAnswerBuilder
,DeleteFeatureDefinitionLiveCommandAnswerBuilder
,DeleteFeatureDesiredPropertiesLiveCommandAnswerBuilder
,DeleteFeatureDesiredPropertyLiveCommandAnswerBuilder
,DeleteFeatureLiveCommandAnswerBuilder
,DeleteFeaturePropertiesLiveCommandAnswerBuilder
,DeleteFeaturePropertyLiveCommandAnswerBuilder
,DeleteFeaturesLiveCommandAnswerBuilder
,DeleteThingLiveCommandAnswerBuilder
,MergeThingLiveCommandAnswerBuilder
,ModifyAttributeLiveCommandAnswerBuilder
,ModifyAttributesLiveCommandAnswerBuilder
,ModifyFeatureDefinitionLiveCommandAnswerBuilder
,ModifyFeatureDesiredPropertiesLiveCommandAnswerBuilder
,ModifyFeatureDesiredPropertyLiveCommandAnswerBuilder
,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.client.live.commands.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 noCommandResponse
is sent for the incomingCommand
.LiveCommandAnswerBuilder.EventStep<E>
withResponse(java.util.function.Function<R,org.eclipse.ditto.base.model.signals.commands.CommandResponse<?>> createResponseFunction)
Configures the function for creating aCommandResponse
for the incomingCommand
.
-
-
-
Method Detail
-
withResponse
LiveCommandAnswerBuilder.EventStep<E> withResponse(java.util.function.Function<R,org.eclipse.ditto.base.model.signals.commands.CommandResponse<?>> createResponseFunction)
Configures the function for creating aCommandResponse
for the incomingCommand
.- Parameters:
createResponseFunction
- the function used to build theCommandResponse
to be returned.- Returns:
- an EventStep LiveCommandAnswerBuilder in order to configure the
Event
to emit. - Throws:
java.lang.NullPointerException
- ifcreateResponseFunction
isnull
.
-
withoutResponse
LiveCommandAnswerBuilder.EventStep<E> withoutResponse()
Configures that noCommandResponse
is sent for the incomingCommand
.Be careful using this as the sender of the
Command
might wait for aCommandResponse
.- Returns:
- an EventStep LiveCommandAnswerBuilder in order to configure the
Event
to emit
-
-