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