Add connectionFactory getter

Resolves #2314
This commit is contained in:
Christian Tzolov
2022-03-30 14:53:10 +02:00
committed by Soby Chacko
parent f58dcf371d
commit d57b445a62

View File

@@ -134,6 +134,7 @@ import org.springframework.util.StringUtils;
* @author Artem Bilan
* @author Soby Chacko
* @author Oleg Zhurakousky
* @author Christian Tzolov
*/
// @checkstyle:off
public class RabbitMessageChannelBinder extends
@@ -277,6 +278,14 @@ public class RabbitMessageChannelBinder extends
}
}
/**
* Get the underlying {@link ConnectionFactory} instance to
* allow manually altering the connection lifecycle.
*/
public ConnectionFactory getConnectionFactory() {
return this.connectionFactory;
}
@Override
public RabbitConsumerProperties getExtendedConsumerProperties(String channelName) {
return this.extendedBindingProperties.getExtendedConsumerProperties(channelName);