open fun setIdGenerator(@Nullable idGenerator: IdGenerator): Unit
Configure the IdGenerator strategy to initialize MessageHeaderAccessor instances with.
By default this property is set to null in which case the default IdGenerator of org.springframework.messaging.MessageHeaders is used.
To have no ids generated at all, see #setDisableIdGeneration().