Spring integration 只有一个';UniqueExpiryCallback&x27;可以在';MessageGroupStore';

Spring integration 只有一个';UniqueExpiryCallback&x27;可以在';MessageGroupStore';,spring-integration,Spring Integration,在 不应该有通过检查uniqueExpiryCallbackPresent变量来登录if子句,因为在这个星座中,每当我在流的配置中使用.aggregator()时,我都会得到错误日志。 这是spring集成的5.1.1版本。谢谢;这已报告,并已修复,将在5.1.2中介绍 org.springframework.integration.store.AbstractMessageGroupStore { ... @Override public void regist

不应该有通过检查uniqueExpiryCallbackPresent变量来登录if子句,因为在这个星座中,每当我在流的配置中使用.aggregator()时,我都会得到错误日志。
这是spring集成的5.1.1版本。

谢谢;这已报告,并已修复,将在5.1.2中介绍

    org.springframework.integration.store.AbstractMessageGroupStore {
    ...
    @Override
    public void registerMessageGroupExpiryCallback(MessageGroupCallback callback) {
        if (callback instanceof UniqueExpiryCallback) {
            boolean uniqueExpiryCallbackPresent =
                    this.expiryCallbacks.stream()
                            .anyMatch(UniqueExpiryCallback.class::isInstance);

            if (!uniqueExpiryCallbackPresent && this.logger.isErrorEnabled()) {
                this.logger.error("Only one instance of 'UniqueExpiryCallback' can be registered in the " +
                        "'MessageGroupStore'. Use a separate 'MessageGroupStore' for each aggregator/resequencer.");
            }
        }

        this.expiryCallbacks.add(callback);
    }
   ...
}