Interface LiveCommandAnswerBuilder.QueryCommandResponseStep<R extends LiveCommandResponseFactory>
-
- Type Parameters:
R- the type of the LiveCommandResponseFactory to use for buildingCommandResponses.
- All Superinterfaces:
LiveCommandAnswerBuilder
- All Known Subinterfaces:
RetrieveAttributeLiveCommandAnswerBuilder,RetrieveAttributesLiveCommandAnswerBuilder,RetrieveFeatureDefinitionLiveCommandAnswerBuilder,RetrieveFeatureLiveCommandAnswerBuilder,RetrieveFeaturePropertiesLiveCommandAnswerBuilder,RetrieveFeaturePropertyLiveCommandAnswerBuilder,RetrieveFeaturesLiveCommandAnswerBuilder,RetrieveThingLiveCommandAnswerBuilder,RetrieveThingsLiveCommandAnswerBuilder
- Enclosing interface:
- LiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface LiveCommandAnswerBuilder.QueryCommandResponseStep<R extends LiveCommandResponseFactory> extends LiveCommandAnswerBuilder
Interface for LiveCommandHandleResults which areQueryCommands(retrieving 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.BuildStepwithoutResponse()Configures that noCommandResponseis sent for the incomingCommand.LiveCommandAnswerBuilder.BuildStepwithResponse(Function<R,org.eclipse.ditto.signals.commands.base.CommandResponse<?>> createResponseFunction)Configures the function for creating aCommandResponsefor the incomingCommand.
-
-
-
Method Detail
-
withResponse
LiveCommandAnswerBuilder.BuildStep 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:
- the next step for building the answer.
- Throws:
NullPointerException- ifcreateResponseFunctionisnull.
-
withoutResponse
LiveCommandAnswerBuilder.BuildStep withoutResponse()
Configures that noCommandResponseis sent for the incomingCommand.Be careful using this as the sender of the
Commandmight wait for aCommandResponse.- Returns:
- the next step for building the answer.
-
-