Class IdTimestampMessageHeaderInitializer

  • java.lang.Object
    • Constructor Detail

      • IdTimestampMessageHeaderInitializer

        public IdTimestampMessageHeaderInitializer()
    • Method Detail

      • setIdGenerator

        public void setIdGenerator(@Nullable
                                   IdGenerator idGenerator)
        Configure the IdGenerator strategy to initialize MessageHeaderAccessor instances with.

        By default this property is set to null in which case the default IdGenerator of MessageHeaders is used.

        To have no ids generated at all, see setDisableIdGeneration().

      • getIdGenerator

        public IdGenerator getIdGenerator()
        Return the configured IdGenerator, if any.
      • setEnableTimestamp

        public void setEnableTimestamp(boolean enableTimestamp)
        Whether to enable the automatic addition of the MessageHeaders.TIMESTAMP header on MessageHeaderAccessor instances being initialized.

        By default this property is set to false.

      • isEnableTimestamp

        public boolean isEnableTimestamp()
        Return whether the timestamp header is enabled or not.