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, TimeoutException
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 createdTimeoutException
public static ConfigurableConnection create(com.rabbitmq.client.ConnectionFactory connectionFactory, Config config) throws IOException, TimeoutException
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 createdTimeoutException
public static ConfigurableConnection create(ConnectionOptions options, Config config) throws IOException, TimeoutException
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 createdTimeoutException
Copyright © 2016. All rights reserved.