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

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

    Since:
    1.1.0
    • Method Detail

      • isApplicable

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

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

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