Class 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 an AcknowledgementRequest for DittoAcknowledgementLabel.LIVE_RESPONSE.

    If so, the result is a new command with extended headers, else the same command is returned.

    Since:
    1.2.0
    • Method Detail

      • isApplicable

        public boolean isApplicable​(ThingCommand<?> command)
        Specified by:
        isApplicable in class org.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>
      • getMatchedClass

        public Class<ThingCommand<?>> getMatchedClass()
        Specified by:
        getMatchedClass in class org.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>
      • isBindResponseRequiredToAddingRemovingImplicitLabel

        protected boolean isBindResponseRequiredToAddingRemovingImplicitLabel()
        Specified by:
        isBindResponseRequiredToAddingRemovingImplicitLabel in class org.eclipse.ditto.model.base.acks.AbstractCommandAckRequestSetter<ThingCommand<?>>