Interface LiveCommand<T extends org.eclipse.ditto.base.model.signals.commands.Command<T>,B extends LiveCommandAnswerBuilder>
-
- Type Parameters:
T
- the type of the LiveCommand; currently needed as return type forCommand.setDittoHeaders(DittoHeaders)
.B
- the type of the LiveCommandAnswerBuilder to be returned foranswer()
.
- All Superinterfaces:
org.eclipse.ditto.base.model.signals.commands.Command<T>
,org.eclipse.ditto.base.model.headers.DittoHeadersSettable<T>
,org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
,org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,org.eclipse.ditto.json.JsonField>
,org.eclipse.ditto.base.model.signals.Signal<T>
,org.eclipse.ditto.base.model.headers.WithDittoHeaders
,org.eclipse.ditto.base.model.headers.WithManifest
,org.eclipse.ditto.base.model.signals.WithName
,org.eclipse.ditto.base.model.signals.WithResource
,org.eclipse.ditto.base.model.signals.WithType
- All Known Subinterfaces:
CreateThingLiveCommand
,DeleteAttributeLiveCommand
,DeleteAttributesLiveCommand
,DeleteFeatureDefinitionLiveCommand
,DeleteFeatureDesiredPropertiesLiveCommand
,DeleteFeatureDesiredPropertyLiveCommand
,DeleteFeatureLiveCommand
,DeleteFeaturePropertiesLiveCommand
,DeleteFeaturePropertyLiveCommand
,DeleteFeaturesLiveCommand
,DeleteThingLiveCommand
,MergeThingLiveCommand
,ModifyAttributeLiveCommand
,ModifyAttributesLiveCommand
,ModifyFeatureDefinitionLiveCommand
,ModifyFeatureDesiredPropertiesLiveCommand
,ModifyFeatureDesiredPropertyLiveCommand
,ModifyFeatureLiveCommand
,ModifyFeaturePropertiesLiveCommand
,ModifyFeaturePropertyLiveCommand
,ModifyFeaturesLiveCommand
,ModifyThingLiveCommand
,RetrieveAttributeLiveCommand
,RetrieveAttributesLiveCommand
,RetrieveFeatureDefinitionLiveCommand
,RetrieveFeatureDesiredPropertiesLiveCommand
,RetrieveFeatureDesiredPropertyLiveCommand
,RetrieveFeatureLiveCommand
,RetrieveFeaturePropertiesLiveCommand
,RetrieveFeaturePropertyLiveCommand
,RetrieveFeaturesLiveCommand
,RetrieveThingLiveCommand
,RetrieveThingsLiveCommand
- All Known Implementing Classes:
AbstractLiveCommand
public interface LiveCommand<T extends org.eclipse.ditto.base.model.signals.commands.Command<T>,B extends LiveCommandAnswerBuilder> extends org.eclipse.ditto.base.model.signals.commands.Command<T>
A Handle for liveCommand
s giving access to the command. Also provides aCommand
specificLiveCommandAnswerBuilder
used for buildingCommandResponse
s to return andEvent
s to emit for incoming commands.- Since:
- 2.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.signals.commands.Command
org.eclipse.ditto.base.model.signals.commands.Command.Category, org.eclipse.ditto.base.model.signals.commands.Command.JsonFields
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends java.lang.Object>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T extends java.lang.Object>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description B
answer()
Returns a builder for an answer to this command which could include aCommandResponse
s or anEvent
.-
Methods inherited from interface org.eclipse.ditto.base.model.signals.commands.Command
getCategory, getImplementedSchemaVersion, getTypePrefix, setDittoHeaders, toJson, toJson
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
-
Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate
toJson, toJsonString, toJsonString
-
Methods inherited from interface org.eclipse.ditto.base.model.headers.WithDittoHeaders
getDittoHeaders
-
-
-
-
Method Detail
-
answer
@Nonnull B answer()
Returns a builder for an answer to this command which could include aCommandResponse
s or anEvent
. The answer is emitted automatically for the receivedCommand
.- Returns:
- the LiveCommandAnswerBuilder for building responses and events.
-
-