public final class Connections extends Object
| Modifier and Type | Method and Description |
|---|---|
static ConfigurableConnection |
create(Config config)
Creates and returns a new Lyra managed ConfigurableConnection for the given
config. |
static ConfigurableConnection |
create(com.rabbitmq.client.ConnectionFactory connectionFactory,
Config config)
Creates and returns a new Lyra managed ConfigurableConnection for the given
connectionFactory and config. |
static ConfigurableConnection |
create(ConnectionOptions options,
Config config)
Creates and returns a new Lyra managed ConfigurableConnection for the given
options and
config. |
public static ConfigurableConnection create(Config config) throws IOException
config. If
the connection attempt fails, retries will be performed according to the
configured RetryPolicy before throwing the failure.NullPointerException - if connectionFactory or config are nullIOException - if the connection could not be createdpublic static ConfigurableConnection create(com.rabbitmq.client.ConnectionFactory connectionFactory, Config config) throws IOException
connectionFactory and config. If the connection attempt fails, retries will be
performed according to the configured RetryPolicy before
throwing the failure.NullPointerException - if connectionFactory or config are nullIOException - if the connection could not be createdpublic static ConfigurableConnection create(ConnectionOptions options, Config config) throws IOException
options and
config. If the connection attempt fails, retries will be performed according to the
configured RetryPolicy before throwing the failure.NullPointerException - if options or config are nullIOException - if the connection could not be createdCopyright © 2014. All rights reserved.