Class ThingModifyCommandAckRequestSetter
- java.lang.Object
-
- org.eclipse.ditto.base.model.acks.AbstractCommandAckRequestSetter<ThingModifyCommand<?>>
-
- org.eclipse.ditto.things.model.signals.commands.acks.ThingModifyCommandAckRequestSetter
-
- All Implemented Interfaces:
java.util.function.Function<ThingModifyCommand<?>,ThingModifyCommand<?>>,java.util.function.UnaryOperator<ThingModifyCommand<?>>
@Immutable public final class ThingModifyCommandAckRequestSetter extends org.eclipse.ditto.base.model.acks.AbstractCommandAckRequestSetter<ThingModifyCommand<?>>
This UnaryOperator accepts a ThingModifyCommand and checks whether its DittoHeaders should be extended by anAcknowledgementRequestforDittoAcknowledgementLabel.TWIN_PERSISTED.If so, the result is a new command with extended headers, else the same command is returned.
- Since:
- 1.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThingModifyCommandAckRequestSettergetInstance()Returns an instance ofThingModifyCommandAckRequestSetter.java.lang.Class<ThingModifyCommand<?>>getMatchedClass()booleanisApplicable(ThingModifyCommand<?> command)protected booleanisBindResponseRequiredToAddingRemovingImplicitLabel()-
Methods inherited from class org.eclipse.ditto.base.model.acks.AbstractCommandAckRequestSetter
apply, isLiveChannelCommand
-
-
-
-
Method Detail
-
getInstance
public static ThingModifyCommandAckRequestSetter getInstance()
Returns an instance ofThingModifyCommandAckRequestSetter.- Returns:
- the instance.
-
isApplicable
public boolean isApplicable(ThingModifyCommand<?> command)
- Specified by:
isApplicablein classorg.eclipse.ditto.base.model.acks.AbstractCommandAckRequestSetter<ThingModifyCommand<?>>
-
getMatchedClass
public java.lang.Class<ThingModifyCommand<?>> getMatchedClass()
- Specified by:
getMatchedClassin classorg.eclipse.ditto.base.model.acks.AbstractCommandAckRequestSetter<ThingModifyCommand<?>>
-
isBindResponseRequiredToAddingRemovingImplicitLabel
protected boolean isBindResponseRequiredToAddingRemovingImplicitLabel()
- Specified by:
isBindResponseRequiredToAddingRemovingImplicitLabelin classorg.eclipse.ditto.base.model.acks.AbstractCommandAckRequestSetter<ThingModifyCommand<?>>
-
-