Uses of Class
net.jodah.lyra.config.Config
Package | Description |
---|---|
net.jodah.lyra | |
net.jodah.lyra.config |
-
Uses of Config in net.jodah.lyra
Methods in net.jodah.lyra with parameters of type Config Modifier and Type Method Description static ConfigurableConnection
Connections. create(com.rabbitmq.client.ConnectionFactory connectionFactory, Config config)
Creates and returns a new Lyra managed ConfigurableConnection for the givenconnectionFactory
andconfig
.static ConfigurableConnection
Connections. create(com.rabbitmq.client.ConnectionFactory connectionFactory, Config config, java.lang.ClassLoader classLoader)
Creates and returns a new Lyra managed ConfigurableConnection for the givenconnectionFactory
andconfig
.static ConfigurableConnection
Connections. create(Config config)
Creates and returns a new Lyra managed ConfigurableConnection for the givenconfig
.static ConfigurableConnection
Connections. create(Config config, java.lang.ClassLoader classLoader)
Creates and returns a new Lyra managed ConfigurableConnection for the givenconfig
.static ConfigurableConnection
Connections. create(ConnectionOptions options, Config config)
Creates and returns a new Lyra managed ConfigurableConnection for the givenoptions
andconfig
.static ConfigurableConnection
Connections. create(ConnectionOptions options, Config config, java.lang.ClassLoader classLoader)
Creates and returns a new Lyra managed ConfigurableConnection for the givenoptions
andconfig
. -
Uses of Config in net.jodah.lyra.config
Methods in net.jodah.lyra.config that return Config Modifier and Type Method Description Config
Config. withChannelListeners(ChannelListener... channelListeners)
Config
Config. withChannelRecoveryPolicy(RecoveryPolicy channelRecoveryPolicy)
Config
Config. withChannelRetryPolicy(RetryPolicy channelRetryPolicy)
Config
Config. withConnectionListeners(ConnectionListener... connectionListeners)
Config
Config. withConnectionRecoveryPolicy(RecoveryPolicy connectionRecoveryPolicy)
Config
Config. withConnectionRetryPolicy(RetryPolicy connectionRetryPolicy)
Config
Config. withConnectRetryPolicy(RetryPolicy connectRetryPolicy)
Sets the policy to use for handling initialconnection attempt
errors.Config
Config. withConsumerListeners(ConsumerListener... consumerListeners)
Config
Config. withConsumerRecovery(boolean enabled)
Config
Config. withExchangeRecovery(boolean enabled)
Config
Config. withQueueRecovery(boolean enabled)
Config
Config. withRecoveryPolicy(RecoveryPolicy recoveryPolicy)
Sets the policy to use for the recovery of Connections/Channels/Consumers after an unexpected Connection/Channel closure.Config
Config. withRetryPolicy(RetryPolicy retryPolicy)
Sets the policy to use for handlingconnection attempt
,Connection
invocation, andChannel
invocation errors.Config
Config. withUseDaemonThreads(boolean enabled)
Constructors in net.jodah.lyra.config with parameters of type Config Constructor Description Config(Config parent)
Creates a new Config object that inherits configuration from theparent
.