public class ServiceBusJmsConnectionFactorySettings extends Object
| Constructor and Description |
|---|
ServiceBusJmsConnectionFactorySettings() |
ServiceBusJmsConnectionFactorySettings(long connectionIdleTimeoutMS,
boolean traceFrames) |
ServiceBusJmsConnectionFactorySettings(Map<String,String> configurationOptions)
Configure QPID JMS case sensitive options for this ConnectionFactory.
|
public ServiceBusJmsConnectionFactorySettings()
public ServiceBusJmsConnectionFactorySettings(long connectionIdleTimeoutMS,
boolean traceFrames)
public ServiceBusJmsConnectionFactorySettings(Map<String,String> configurationOptions)
public long getConnectionIdleTimeoutMS()
public void setConnectionIdleTimeoutMS(long connectionIdleTimeoutMS)
public Supplier<io.netty.handler.proxy.ProxyHandler> getProxyHandlerSupplier()
public void setProxyHandlerSupplier(Supplier<io.netty.handler.proxy.ProxyHandler> proxyHandlerSupplier)
public boolean isTraceFrames()
public void setTraceFrames(boolean traceFrames)
public boolean shouldReconnect()
public void setShouldReconnect(boolean shouldReconnect)
shouldReconnect - True if the reconnect functionalities implement by QPID should be leveraged. Default is true.public String[] getReconnectHosts()
public void setReconnectHosts(String[] reconnectHosts)
reconnectHosts - The array of ServiceBus hosts that the client should reconnect to in case of a connection failure.
An example value is contoso.servicebus.windows.net.
Please note that the same SAS keys from the original host will be used upon the reconnct host for authentication.public Long getInitialReconnectDelay()
public void setInitialReconnectDelay(long initialReconnectDelay)
initialReconnectDelay - The amount of time the client will wait before the first attempt to reconnect to a remote peer in milliseconds.
The default value is zero, meaning the first attempt happens immediately.public Long getReconnectDelay()
public void setReconnectDelay(long reconnectDelay)
reconnectDelay - The delay between successive reconnection attempts in milliseconds, defaults to 10.
If the backoff option is not enabled this value remains constant.public Long getMaxReconnectDelay()
public void setMaxReconnectDelay(long maxReconnectDelay)
maxReconnectDelay - The maximum time that the client will wait before attempting a reconnect in milliseconds, defaults to 30000.public Boolean useReconnectBackOff()
public void setUseReconnectBackOff(boolean useReconnectBackOff)
useReconnectBackOff - True if the time between reconnection attempts should grow based on a configured multiplier. This option defaults to true.public Double getReconnectBackOffMultiplier()
public void setReconnectBackOffMultiplier(double reconnectBackOffMultiplier)
reconnectBackOffMultiplier - The multiplier used to grow the reconnection delay value, defaults to 2.0.public Integer getMaxReconnectAttempts()
public void setMaxReconnectAttempts(int maxReconnectAttempts)
maxReconnectAttempts - The number of reconnection attempts allowed before reporting the connection as failed to the client. The default is no limit or (-1).public Integer getStartupMaxReconnectAttempts()
public void setStartupMaxReconnectAttempts(int startupMaxReconnectAttempts)
startupMaxReconnectAttempts - For a client that has never connected to a remote peer before this option control how many attempts are made to connect before reporting the connection as failed.
The default is to use the value of maxReconnectAttempts.public Integer getWarnAfterReconnectAttempts()
public void setWarnAfterReconnectAttempts(int warnAfterReconnectAttempts)
warnAfterReconnectAttempts - Number of reconnection attempts before the client will log a message indicating that reconnect reconnection is being attempted. The default is to log every 10 connection attempts.public Boolean shouldReconnectRandomize()
public void setReconnectRandomize(boolean randomize)
randomize - True if the set of reconnect URIs is randomly shuffled prior to attempting to connect to one of them.
This can help to distribute client connections more evenly across multiple remote peers. The default value is false.public ReconnectAmqpOpenServerListAction getReconnectAmqpOpenServerListAction()
public void setReconnectAmqpOpenServerListAction(ReconnectAmqpOpenServerListAction amqpOpenServerListAction)
amqpOpenServerListAction - Controls how the reconnect transport behaves when the connection Open frame from the remote peer provides a list of reconnect hosts to the client.
This option accepts one of three values; REPLACE, ADD, or IGNORE (default is REPLACE).
If REPLACE is configured then all reconnect URIs other than the one for the current server are replaced with those provided by the remote peer.
If ADD is configured then the URIs provided by the remote are added to the existing set of reconnect URIs, with de-duplication.
If IGNORE is configured then any updates from the remote are dropped and no changes are made to the set of reconnect URIs in use.Copyright © 2021. All rights reserved.