Package | Description |
---|---|
net.jodah.lyra |
Modifier and Type | Method and Description |
---|---|
ConnectionOptions |
ConnectionOptions.copy()
Returns a new copy of the options.
|
ConnectionOptions |
ConnectionOptions.withAddresses(com.rabbitmq.client.Address... addresses)
Sets the
addresses to attempt connections to, in round-robin order. |
ConnectionOptions |
ConnectionOptions.withAddresses(String addresses)
Sets the
addresses . |
ConnectionOptions |
ConnectionOptions.withClientProperties(Map<String,Object> clientProperties)
Sets the client properties.
|
ConnectionOptions |
ConnectionOptions.withConnectionFactory(com.rabbitmq.client.ConnectionFactory connectionFactory)
Sets the
connectionFactory . |
ConnectionOptions |
ConnectionOptions.withConnectionTimeout(Duration connectionTimeout)
Set the connection timeout, zero for infinite, for an individual connection attempt.
|
ConnectionOptions |
ConnectionOptions.withConsumerExecutor(ExecutorService executor)
Sets the executor used to handle consumer callbacks.
|
ConnectionOptions |
ConnectionOptions.withHost(String host)
Sets the
host . |
ConnectionOptions |
ConnectionOptions.withHosts(String... hosts)
Sets the
hosts to attempt connections to, in round-robin order. |
ConnectionOptions |
ConnectionOptions.withName(String name)
Sets the connection name.
|
ConnectionOptions |
ConnectionOptions.withPassword(String password)
Sets the password.
|
ConnectionOptions |
ConnectionOptions.withPort(int port)
Set the port.
|
ConnectionOptions |
ConnectionOptions.withRequestedHeartbeat(Duration requestedHeartbeat)
Set the requested heartbeat, zero for none.
|
ConnectionOptions |
ConnectionOptions.withSocketFactory(SocketFactory socketFactory)
Sets the SocketFactory to create connections with.
|
ConnectionOptions |
ConnectionOptions.withSsl()
Enabled SSL using SSLv3.
|
ConnectionOptions |
ConnectionOptions.withSslProtocol(SSLContext sslContext)
Sets the initialized
sslContext to use. |
ConnectionOptions |
ConnectionOptions.withSslProtocol(String sslProtocol)
Sets the
sslProtocol to use. |
ConnectionOptions |
ConnectionOptions.withSslProtocol(String sslProtocol,
TrustManager trustManager)
Sets the
sslProtocol and trustManager to use. |
ConnectionOptions |
ConnectionOptions.withUsername(String username)
Sets the username.
|
ConnectionOptions |
ConnectionOptions.withVirtualHost(String virtualHost)
Sets the virtual host.
|
Modifier and Type | Method and Description |
---|---|
static ConfigurableConnection |
Connections.create(ConnectionOptions options,
Config config)
Creates and returns a new Lyra managed ConfigurableConnection for the given
options and
config . |
Copyright © 2016. All rights reserved.