Class ThingLiveCommandAckRequestSetter
- java.lang.Object
-
- org.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>
-
- org.eclipse.ditto.signals.commands.things.acks.ThingLiveCommandAckRequestSetter
-
- All Implemented Interfaces:
Function<ThingCommand<?>,ThingCommand<?>>
,UnaryOperator<ThingCommand<?>>
@Immutable public final class ThingLiveCommandAckRequestSetter extends org.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>
This UnaryOperator accepts a ThingCommand and checks whether its DittoHeaders should be extended by anAcknowledgementRequest
forDittoAcknowledgementLabel.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 ThingLiveCommandAckRequestSetter
getInstance()
Returns an instance ofThingLiveCommandAckRequestSetter
.Class<ThingCommand<?>>
getMatchedClass()
boolean
isApplicable(ThingCommand<?> command)
protected boolean
isBindResponseRequiredToAddingRemovingImplicitLabel()
-
Methods inherited from class org.eclipse.ditto.model.base.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:
isApplicable
in classorg.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>
-
getMatchedClass
public Class<ThingCommand<?>> getMatchedClass()
- Specified by:
getMatchedClass
in classorg.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>
-
isBindResponseRequiredToAddingRemovingImplicitLabel
protected boolean isBindResponseRequiredToAddingRemovingImplicitLabel()
- Specified by:
isBindResponseRequiredToAddingRemovingImplicitLabel
in classorg.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>
-
-