Package io.micronaut.rabbitmq.connect
Class RabbitConnectionFactoryConfig.ChannelPoolConfiguration
- java.lang.Object
-
- io.micronaut.rabbitmq.connect.RabbitConnectionFactoryConfig.ChannelPoolConfiguration
-
- Direct Known Subclasses:
ClusterRabbitConnectionFactoryConfig.DefaultChannelPoolConfiguration,SingleRabbitConnectionFactoryConfig.DefaultChannelPoolConfiguration
- Enclosing class:
- RabbitConnectionFactoryConfig
public static class RabbitConnectionFactoryConfig.ChannelPoolConfiguration extends java.lang.ObjectConfiguration for the channel pool.
-
-
Constructor Summary
Constructors Constructor Description ChannelPoolConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Integer>getMaxIdleChannels()voidsetMaxIdleChannels(java.lang.Integer maxIdleChannels)Sets the maximum number of idle channels that will be kept open.
-
-
-
Method Detail
-
getMaxIdleChannels
public java.util.Optional<java.lang.Integer> getMaxIdleChannels()
- Returns:
- The number of idle channels to keep open.
-
setMaxIdleChannels
public void setMaxIdleChannels(@Nullable java.lang.Integer maxIdleChannels)Sets the maximum number of idle channels that will be kept open.- Parameters:
maxIdleChannels- The maximum idle channels
-
-