EVOLUTION-MANAGER
Edit File: ConnectionFactory.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_91) on Thu Jan 14 10:04:50 GMT 2016 --> <title>ConnectionFactory</title> <meta name="date" content="2016-01-14"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><!-- if (location.href.indexOf('is-external=true') == -1) { parent.document.title="ConnectionFactory"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar_top"> <!-- --> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client"><span class="strong">Prev Class</span></a></li> <li><a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?com/rabbitmq/client/ConnectionFactory.html" target="_top">Frames</a></li> <li><a href="ConnectionFactory.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field_summary">Field</a> | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field_detail">Field</a> | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.rabbitmq.client</div> <h2 title="Class ConnectionFactory" class="title">Class ConnectionFactory</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.rabbitmq.client.ConnectionFactory</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd>java.lang.Cloneable</dd> </dl> <hr> <br> <pre>public class <span class="strong">ConnectionFactory</span> extends java.lang.Object implements java.lang.Cloneable</pre> <div class="block">Convenience "factory" class to facilitate opening a <a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client"><code>Connection</code></a> to an AMQP broker.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field_summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_AMQP_OVER_SSL_PORT">DEFAULT_AMQP_OVER_SSL_PORT</a></strong></code> <div class="block">The default ssl port</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_AMQP_PORT">DEFAULT_AMQP_PORT</a></strong></code> <div class="block">The default non-ssl port</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_CHANNEL_MAX">DEFAULT_CHANNEL_MAX</a></strong></code> <div class="block">Default maximum channel number; zero for unlimited</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_CONNECTION_TIMEOUT">DEFAULT_CONNECTION_TIMEOUT</a></strong></code> <div class="block">The default TCP connection timeout: 60 seconds</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_FRAME_MAX">DEFAULT_FRAME_MAX</a></strong></code> <div class="block">Default maximum frame size; zero means no limit</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_HANDSHAKE_TIMEOUT">DEFAULT_HANDSHAKE_TIMEOUT</a></strong></code> <div class="block">The default AMQP 0-9-1 connection handshake timeout.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_HEARTBEAT">DEFAULT_HEARTBEAT</a></strong></code> <div class="block">Default heart-beat interval; 60 seconds</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_HOST">DEFAULT_HOST</a></strong></code> <div class="block">The default host</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_PASS">DEFAULT_PASS</a></strong></code> <div class="block">Default password</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_SHUTDOWN_TIMEOUT">DEFAULT_SHUTDOWN_TIMEOUT</a></strong></code> <div class="block">The default shutdown timeout; zero means wait indefinitely</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_USER">DEFAULT_USER</a></strong></code> <div class="block">Default user name</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#DEFAULT_VHOST">DEFAULT_VHOST</a></strong></code> <div class="block">Default virtual host</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#USE_DEFAULT_PORT">USE_DEFAULT_PORT</a></strong></code> <div class="block">'Use the default port' port</div> </td> </tr> </table> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#ConnectionFactory()">ConnectionFactory</a></strong>()</code> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method_summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/ConnectionFactory.html" title="class in com.rabbitmq.client">ConnectionFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#clone()">clone</a></strong>()</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>protected <a href="../../../com/rabbitmq/client/impl/FrameHandlerFactory.html" title="class in com.rabbitmq.client.impl">FrameHandlerFactory</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#createFrameHandlerFactory()">createFrameHandlerFactory</a></strong>()</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.util.Map<java.lang.String,java.lang.Object></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getClientProperties()">getClientProperties</a></strong>()</code> <div class="block">Retrieve the currently-configured table of client properties that will be sent to the server during connection startup.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getConnectionTimeout()">getConnectionTimeout</a></strong>()</code> <div class="block">Retrieve the TCP connection timeout.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/ExceptionHandler.html" title="interface in com.rabbitmq.client">ExceptionHandler</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getExceptionHandler()">getExceptionHandler</a></strong>()</code> <div class="block">Get the exception handler.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getHandshakeTimeout()">getHandshakeTimeout</a></strong>()</code> <div class="block">Retrieve the AMQP 0-9-1 protocol handshake timeout.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getHost()">getHost</a></strong>()</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getNetworkRecoveryInterval()">getNetworkRecoveryInterval</a></strong>()</code> <div class="block">Returns automatic connection recovery interval in milliseconds.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getPassword()">getPassword</a></strong>()</code> <div class="block">Retrieve the password.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getPort()">getPort</a></strong>()</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getRequestedChannelMax()">getRequestedChannelMax</a></strong>()</code> <div class="block">Retrieve the requested maximum channel number</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getRequestedFrameMax()">getRequestedFrameMax</a></strong>()</code> <div class="block">Retrieve the requested maximum frame size</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getRequestedHeartbeat()">getRequestedHeartbeat</a></strong>()</code> <div class="block">Retrieve the requested heartbeat interval.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/SaslConfig.html" title="interface in com.rabbitmq.client">SaslConfig</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getSaslConfig()">getSaslConfig</a></strong>()</code> <div class="block">Gets the sasl config to use when authenticating</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getShutdownTimeout()">getShutdownTimeout</a></strong>()</code> <div class="block">Retrieve the shutdown timeout.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/SocketConfigurator.html" title="interface in com.rabbitmq.client">SocketConfigurator</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getSocketConfigurator()">getSocketConfigurator</a></strong>()</code> <div class="block">Get the socket configurator.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>javax.net.SocketFactory</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getSocketFactory()">getSocketFactory</a></strong>()</code> <div class="block">Retrieve the socket factory used to make connections with.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.util.concurrent.ThreadFactory</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getThreadFactory()">getThreadFactory</a></strong>()</code> <div class="block">Retrieve the thread factory used to instantiate new threads.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getUsername()">getUsername</a></strong>()</code> <div class="block">Retrieve the user name.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getVirtualHost()">getVirtualHost</a></strong>()</code> <div class="block">Retrieve the virtual host.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#isAutomaticRecoveryEnabled()">isAutomaticRecoveryEnabled</a></strong>()</code> <div class="block">Returns true if <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a> is enabled, false otherwise</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#isSSL()">isSSL</a></strong>()</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#isTopologyRecoveryEnabled()">isTopologyRecoveryEnabled</a></strong>()</code> <div class="block">Returns true if topology recovery is enabled, false otherwise</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#newConnection()">newConnection</a></strong>()</code> <div class="block">Create a new broker connection.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#newConnection(com.rabbitmq.client.Address[])">newConnection</a></strong>(<a href="../../../com/rabbitmq/client/Address.html" title="class in com.rabbitmq.client">Address</a>[] addrs)</code> <div class="block">Create a new broker connection, picking the first available address from the list.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#newConnection(java.util.concurrent.ExecutorService)">newConnection</a></strong>(java.util.concurrent.ExecutorService executor)</code> <div class="block">Create a new broker connection.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#newConnection(java.util.concurrent.ExecutorService,%20com.rabbitmq.client.Address[])">newConnection</a></strong>(java.util.concurrent.ExecutorService executor, <a href="../../../com/rabbitmq/client/Address.html" title="class in com.rabbitmq.client">Address</a>[] addrs)</code> <div class="block">Create a new broker connection, picking the first available address from the list.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../com/rabbitmq/client/impl/ConnectionParams.html" title="class in com.rabbitmq.client.impl">ConnectionParams</a></code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#params(java.util.concurrent.ExecutorService)">params</a></strong>(java.util.concurrent.ExecutorService consumerWorkServiceExecutor)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#portOrDefault(int,%20boolean)">portOrDefault</a></strong>(int port, boolean ssl)</code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setAutomaticRecoveryEnabled(boolean)">setAutomaticRecoveryEnabled</a></strong>(boolean automaticRecovery)</code> <div class="block">Enables or disables <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setClientProperties(java.util.Map)">setClientProperties</a></strong>(java.util.Map<java.lang.String,java.lang.Object> clientProperties)</code> <div class="block">Replace the table of client properties that will be sent to the server during subsequent connection startups.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setConnectionTimeout(int)">setConnectionTimeout</a></strong>(int timeout)</code> <div class="block">Set the TCP connection timeout.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setExceptionHandler(com.rabbitmq.client.ExceptionHandler)">setExceptionHandler</a></strong>(<a href="../../../com/rabbitmq/client/ExceptionHandler.html" title="interface in com.rabbitmq.client">ExceptionHandler</a> exceptionHandler)</code> <div class="block">Set the exception handler to use for newly created connections.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setHandshakeTimeout(int)">setHandshakeTimeout</a></strong>(int timeout)</code> <div class="block">Set the AMQP0-9-1 protocol handshake timeout.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setHeartbeatExecutor(java.util.concurrent.ScheduledExecutorService)">setHeartbeatExecutor</a></strong>(java.util.concurrent.ScheduledExecutorService executor)</code> <div class="block">Set the executor to use to send heartbeat frames.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setHost(java.lang.String)">setHost</a></strong>(java.lang.String host)</code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setNetworkRecoveryInterval(int)">setNetworkRecoveryInterval</a></strong>(int networkRecoveryInterval)</code> <div class="block">Sets connection recovery interval.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setNetworkRecoveryInterval(long)">setNetworkRecoveryInterval</a></strong>(long networkRecoveryInterval)</code> <div class="block">Sets connection recovery interval.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setPassword(java.lang.String)">setPassword</a></strong>(java.lang.String password)</code> <div class="block">Set the password.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setPort(int)">setPort</a></strong>(int port)</code> <div class="block">Set the target port.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setRequestedChannelMax(int)">setRequestedChannelMax</a></strong>(int requestedChannelMax)</code> <div class="block">Set the requested maximum channel number</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setRequestedFrameMax(int)">setRequestedFrameMax</a></strong>(int requestedFrameMax)</code> <div class="block">Set the requested maximum frame size</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setRequestedHeartbeat(int)">setRequestedHeartbeat</a></strong>(int requestedHeartbeat)</code> <div class="block">Set the requested heartbeat timeout.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setSaslConfig(com.rabbitmq.client.SaslConfig)">setSaslConfig</a></strong>(<a href="../../../com/rabbitmq/client/SaslConfig.html" title="interface in com.rabbitmq.client">SaslConfig</a> saslConfig)</code> <div class="block">Sets the sasl config to use when authenticating</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setSharedExecutor(java.util.concurrent.ExecutorService)">setSharedExecutor</a></strong>(java.util.concurrent.ExecutorService executor)</code> <div class="block">Set the executor to use for consumer operation dispatch by default for newly created connections.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setShutdownExecutor(java.util.concurrent.ExecutorService)">setShutdownExecutor</a></strong>(java.util.concurrent.ExecutorService executor)</code> <div class="block">Set the executor to use for connection shutdown.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setShutdownTimeout(int)">setShutdownTimeout</a></strong>(int shutdownTimeout)</code> <div class="block">Set the shutdown timeout.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setSocketConfigurator(com.rabbitmq.client.SocketConfigurator)">setSocketConfigurator</a></strong>(<a href="../../../com/rabbitmq/client/SocketConfigurator.html" title="interface in com.rabbitmq.client">SocketConfigurator</a> socketConfigurator)</code> <div class="block">Set the socket configurator.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setSocketFactory(javax.net.SocketFactory)">setSocketFactory</a></strong>(javax.net.SocketFactory factory)</code> <div class="block">Set the socket factory used to make connections with.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setThreadFactory(java.util.concurrent.ThreadFactory)">setThreadFactory</a></strong>(java.util.concurrent.ThreadFactory threadFactory)</code> <div class="block">Set the thread factory used to instantiate new threads.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setTopologyRecoveryEnabled(boolean)">setTopologyRecoveryEnabled</a></strong>(boolean topologyRecovery)</code> <div class="block">Enables or disables topology recovery</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setUri(java.lang.String)">setUri</a></strong>(java.lang.String uriString)</code> <div class="block">Convenience method for setting the fields in an AMQP URI: host, port, username, password and virtual host.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setUri(java.net.URI)">setUri</a></strong>(java.net.URI uri)</code> <div class="block">Convenience method for setting the fields in an AMQP URI: host, port, username, password and virtual host.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setUsername(java.lang.String)">setUsername</a></strong>(java.lang.String username)</code> <div class="block">Set the user name.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setVirtualHost(java.lang.String)">setVirtualHost</a></strong>(java.lang.String virtualHost)</code> <div class="block">Set the virtual host.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#useSslProtocol()">useSslProtocol</a></strong>()</code> <div class="block">Convenience method for setting up a SSL socket factory, using the DEFAULT_SSL_PROTOCOL and a trusting TrustManager.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#useSslProtocol(javax.net.ssl.SSLContext)">useSslProtocol</a></strong>(javax.net.ssl.SSLContext context)</code> <div class="block">Convenience method for setting up an SSL socket factory.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#useSslProtocol(java.lang.String)">useSslProtocol</a></strong>(java.lang.String protocol)</code> <div class="block">Convenience method for setting up a SSL socket factory, using the supplied protocol and a very trusting TrustManager.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><strong><a href="../../../com/rabbitmq/client/ConnectionFactory.html#useSslProtocol(java.lang.String,%20javax.net.ssl.TrustManager)">useSslProtocol</a></strong>(java.lang.String protocol, javax.net.ssl.TrustManager trustManager)</code> <div class="block">Convenience method for setting up an SSL socket factory.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field_detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="DEFAULT_USER"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_USER</h4> <pre>public static final java.lang.String DEFAULT_USER</pre> <div class="block">Default user name</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_USER">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_PASS"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_PASS</h4> <pre>public static final java.lang.String DEFAULT_PASS</pre> <div class="block">Default password</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_PASS">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_VHOST"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_VHOST</h4> <pre>public static final java.lang.String DEFAULT_VHOST</pre> <div class="block">Default virtual host</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_VHOST">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_CHANNEL_MAX"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_CHANNEL_MAX</h4> <pre>public static final int DEFAULT_CHANNEL_MAX</pre> <div class="block">Default maximum channel number; zero for unlimited</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_CHANNEL_MAX">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_FRAME_MAX"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_FRAME_MAX</h4> <pre>public static final int DEFAULT_FRAME_MAX</pre> <div class="block">Default maximum frame size; zero means no limit</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_FRAME_MAX">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_HEARTBEAT"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_HEARTBEAT</h4> <pre>public static final int DEFAULT_HEARTBEAT</pre> <div class="block">Default heart-beat interval; 60 seconds</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_HEARTBEAT">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_HOST"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_HOST</h4> <pre>public static final java.lang.String DEFAULT_HOST</pre> <div class="block">The default host</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_HOST">Constant Field Values</a></dd></dl> </li> </ul> <a name="USE_DEFAULT_PORT"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>USE_DEFAULT_PORT</h4> <pre>public static final int USE_DEFAULT_PORT</pre> <div class="block">'Use the default port' port</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.USE_DEFAULT_PORT">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_AMQP_PORT"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_AMQP_PORT</h4> <pre>public static final int DEFAULT_AMQP_PORT</pre> <div class="block">The default non-ssl port</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_AMQP_PORT">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_AMQP_OVER_SSL_PORT"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_AMQP_OVER_SSL_PORT</h4> <pre>public static final int DEFAULT_AMQP_OVER_SSL_PORT</pre> <div class="block">The default ssl port</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_AMQP_OVER_SSL_PORT">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_CONNECTION_TIMEOUT"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_CONNECTION_TIMEOUT</h4> <pre>public static final int DEFAULT_CONNECTION_TIMEOUT</pre> <div class="block">The default TCP connection timeout: 60 seconds</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_CONNECTION_TIMEOUT">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_HANDSHAKE_TIMEOUT"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DEFAULT_HANDSHAKE_TIMEOUT</h4> <pre>public static final int DEFAULT_HANDSHAKE_TIMEOUT</pre> <div class="block">The default AMQP 0-9-1 connection handshake timeout. See DEFAULT_CONNECTION_TIMEOUT for TCP (socket) connection timeout.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_HANDSHAKE_TIMEOUT">Constant Field Values</a></dd></dl> </li> </ul> <a name="DEFAULT_SHUTDOWN_TIMEOUT"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>DEFAULT_SHUTDOWN_TIMEOUT</h4> <pre>public static final int DEFAULT_SHUTDOWN_TIMEOUT</pre> <div class="block">The default shutdown timeout; zero means wait indefinitely</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../constant-values.html#com.rabbitmq.client.ConnectionFactory.DEFAULT_SHUTDOWN_TIMEOUT">Constant Field Values</a></dd></dl> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="ConnectionFactory()"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>ConnectionFactory</h4> <pre>public ConnectionFactory()</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method_detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getHost()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getHost</h4> <pre>public java.lang.String getHost()</pre> <dl><dt><span class="strong">Returns:</span></dt><dd>the default host to use for connections</dd></dl> </li> </ul> <a name="setHost(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setHost</h4> <pre>public void setHost(java.lang.String host)</pre> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>host</code> - the default host to use for connections</dd></dl> </li> </ul> <a name="portOrDefault(int, boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>portOrDefault</h4> <pre>public static int portOrDefault(int port, boolean ssl)</pre> </li> </ul> <a name="getPort()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getPort</h4> <pre>public int getPort()</pre> <dl><dt><span class="strong">Returns:</span></dt><dd>the default port to use for connections</dd></dl> </li> </ul> <a name="setPort(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setPort</h4> <pre>public void setPort(int port)</pre> <div class="block">Set the target port.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>port</code> - the default port to use for connections</dd></dl> </li> </ul> <a name="getUsername()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getUsername</h4> <pre>public java.lang.String getUsername()</pre> <div class="block">Retrieve the user name.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the AMQP user name to use when connecting to the broker</dd></dl> </li> </ul> <a name="setUsername(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setUsername</h4> <pre>public void setUsername(java.lang.String username)</pre> <div class="block">Set the user name.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>username</code> - the AMQP user name to use when connecting to the broker</dd></dl> </li> </ul> <a name="getPassword()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getPassword</h4> <pre>public java.lang.String getPassword()</pre> <div class="block">Retrieve the password.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the password to use when connecting to the broker</dd></dl> </li> </ul> <a name="setPassword(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setPassword</h4> <pre>public void setPassword(java.lang.String password)</pre> <div class="block">Set the password.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>password</code> - the password to use when connecting to the broker</dd></dl> </li> </ul> <a name="getVirtualHost()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getVirtualHost</h4> <pre>public java.lang.String getVirtualHost()</pre> <div class="block">Retrieve the virtual host.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the virtual host to use when connecting to the broker</dd></dl> </li> </ul> <a name="setVirtualHost(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setVirtualHost</h4> <pre>public void setVirtualHost(java.lang.String virtualHost)</pre> <div class="block">Set the virtual host.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>virtualHost</code> - the virtual host to use when connecting to the broker</dd></dl> </li> </ul> <a name="setUri(java.net.URI)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setUri</h4> <pre>public void setUri(java.net.URI uri) throws java.net.URISyntaxException, java.security.NoSuchAlgorithmException, java.security.KeyManagementException</pre> <div class="block">Convenience method for setting the fields in an AMQP URI: host, port, username, password and virtual host. If any part of the URI is ommited, the ConnectionFactory's corresponding variable is left unchanged.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>uri</code> - is the AMQP URI containing the data</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.net.URISyntaxException</code></dd> <dd><code>java.security.NoSuchAlgorithmException</code></dd> <dd><code>java.security.KeyManagementException</code></dd></dl> </li> </ul> <a name="setUri(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setUri</h4> <pre>public void setUri(java.lang.String uriString) throws java.net.URISyntaxException, java.security.NoSuchAlgorithmException, java.security.KeyManagementException</pre> <div class="block">Convenience method for setting the fields in an AMQP URI: host, port, username, password and virtual host. If any part of the URI is ommited, the ConnectionFactory's corresponding variable is left unchanged. Note that not all valid AMQP URIs are accepted; in particular, the hostname must be given if the port, username or password are given, and escapes in the hostname are not permitted.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>uriString</code> - is the AMQP URI containing the data</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.net.URISyntaxException</code></dd> <dd><code>java.security.NoSuchAlgorithmException</code></dd> <dd><code>java.security.KeyManagementException</code></dd></dl> </li> </ul> <a name="getRequestedChannelMax()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRequestedChannelMax</h4> <pre>public int getRequestedChannelMax()</pre> <div class="block">Retrieve the requested maximum channel number</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the initially requested maximum channel number; zero for unlimited</dd></dl> </li> </ul> <a name="setRequestedChannelMax(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setRequestedChannelMax</h4> <pre>public void setRequestedChannelMax(int requestedChannelMax)</pre> <div class="block">Set the requested maximum channel number</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>requestedChannelMax</code> - initially requested maximum channel number; zero for unlimited</dd></dl> </li> </ul> <a name="getRequestedFrameMax()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRequestedFrameMax</h4> <pre>public int getRequestedFrameMax()</pre> <div class="block">Retrieve the requested maximum frame size</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the initially requested maximum frame size, in octets; zero for unlimited</dd></dl> </li> </ul> <a name="setRequestedFrameMax(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setRequestedFrameMax</h4> <pre>public void setRequestedFrameMax(int requestedFrameMax)</pre> <div class="block">Set the requested maximum frame size</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>requestedFrameMax</code> - initially requested maximum frame size, in octets; zero for unlimited</dd></dl> </li> </ul> <a name="getRequestedHeartbeat()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRequestedHeartbeat</h4> <pre>public int getRequestedHeartbeat()</pre> <div class="block">Retrieve the requested heartbeat interval.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the initially requested heartbeat interval, in seconds; zero for none</dd></dl> </li> </ul> <a name="setConnectionTimeout(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setConnectionTimeout</h4> <pre>public void setConnectionTimeout(int timeout)</pre> <div class="block">Set the TCP connection timeout.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>timeout</code> - connection TCP establishment timeout in milliseconds; zero for infinite</dd></dl> </li> </ul> <a name="getConnectionTimeout()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getConnectionTimeout</h4> <pre>public int getConnectionTimeout()</pre> <div class="block">Retrieve the TCP connection timeout.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the TCP connection timeout, in milliseconds; zero for infinite</dd></dl> </li> </ul> <a name="getHandshakeTimeout()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getHandshakeTimeout</h4> <pre>public int getHandshakeTimeout()</pre> <div class="block">Retrieve the AMQP 0-9-1 protocol handshake timeout.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the AMQP0-9-1 protocol handshake timeout, in milliseconds</dd></dl> </li> </ul> <a name="setHandshakeTimeout(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setHandshakeTimeout</h4> <pre>public void setHandshakeTimeout(int timeout)</pre> <div class="block">Set the AMQP0-9-1 protocol handshake timeout.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>timeout</code> - the AMQP0-9-1 protocol handshake timeout, in milliseconds</dd></dl> </li> </ul> <a name="setShutdownTimeout(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setShutdownTimeout</h4> <pre>public void setShutdownTimeout(int shutdownTimeout)</pre> <div class="block">Set the shutdown timeout. This is the amount of time that Consumer implementations have to continue working through deliveries (and other Consumer callbacks) <b>after</b> the connection has closed but before the ConsumerWorkService is torn down. If consumers exceed this timeout then any remaining queued deliveries (and other Consumer callbacks, <b>including</b> the Consumer's handleShutdownSignal() invocation) will be lost.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>shutdownTimeout</code> - shutdown timeout in milliseconds; zero for infinite; default 10000</dd></dl> </li> </ul> <a name="getShutdownTimeout()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getShutdownTimeout</h4> <pre>public int getShutdownTimeout()</pre> <div class="block">Retrieve the shutdown timeout.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the shutdown timeout, in milliseconds; zero for infinite</dd></dl> </li> </ul> <a name="setRequestedHeartbeat(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setRequestedHeartbeat</h4> <pre>public void setRequestedHeartbeat(int requestedHeartbeat)</pre> <div class="block">Set the requested heartbeat timeout. Heartbeat frames will be sent at about 1/2 the timeout interval.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>requestedHeartbeat</code> - the initially requested heartbeat timeout, in seconds; zero for none</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://rabbitmq.com/heartbeats.html">RabbitMQ Heartbeats Guide</a></dd></dl> </li> </ul> <a name="getClientProperties()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getClientProperties</h4> <pre>public java.util.Map<java.lang.String,java.lang.Object> getClientProperties()</pre> <div class="block">Retrieve the currently-configured table of client properties that will be sent to the server during connection startup. Clients may add, delete, and alter keys in this table. Such changes will take effect when the next new connection is started using this factory.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the map of client properties</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setClientProperties(java.util.Map)"><code>setClientProperties(java.util.Map<java.lang.String, java.lang.Object>)</code></a></dd></dl> </li> </ul> <a name="setClientProperties(java.util.Map)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setClientProperties</h4> <pre>public void setClientProperties(java.util.Map<java.lang.String,java.lang.Object> clientProperties)</pre> <div class="block">Replace the table of client properties that will be sent to the server during subsequent connection startups.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clientProperties</code> - the map of extra client properties</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/ConnectionFactory.html#getClientProperties()"><code>getClientProperties()</code></a></dd></dl> </li> </ul> <a name="getSaslConfig()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getSaslConfig</h4> <pre>public <a href="../../../com/rabbitmq/client/SaslConfig.html" title="interface in com.rabbitmq.client">SaslConfig</a> getSaslConfig()</pre> <div class="block">Gets the sasl config to use when authenticating</div> <dl><dt><span class="strong">Returns:</span></dt><dd>the sasl config</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/SaslConfig.html" title="interface in com.rabbitmq.client"><code>SaslConfig</code></a></dd></dl> </li> </ul> <a name="setSaslConfig(com.rabbitmq.client.SaslConfig)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSaslConfig</h4> <pre>public void setSaslConfig(<a href="../../../com/rabbitmq/client/SaslConfig.html" title="interface in com.rabbitmq.client">SaslConfig</a> saslConfig)</pre> <div class="block">Sets the sasl config to use when authenticating</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>saslConfig</code> - </dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/SaslConfig.html" title="interface in com.rabbitmq.client"><code>SaslConfig</code></a></dd></dl> </li> </ul> <a name="getSocketFactory()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getSocketFactory</h4> <pre>public javax.net.SocketFactory getSocketFactory()</pre> <div class="block">Retrieve the socket factory used to make connections with.</div> </li> </ul> <a name="setSocketFactory(javax.net.SocketFactory)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSocketFactory</h4> <pre>public void setSocketFactory(javax.net.SocketFactory factory)</pre> <div class="block">Set the socket factory used to make connections with. Can be used to enable SSL connections by passing in a javax.net.ssl.SSLSocketFactory instance.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/ConnectionFactory.html#useSslProtocol()"><code>useSslProtocol()</code></a></dd></dl> </li> </ul> <a name="getSocketConfigurator()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getSocketConfigurator</h4> <pre>public <a href="../../../com/rabbitmq/client/SocketConfigurator.html" title="interface in com.rabbitmq.client">SocketConfigurator</a> getSocketConfigurator()</pre> <div class="block">Get the socket configurator.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/ConnectionFactory.html#setSocketConfigurator(com.rabbitmq.client.SocketConfigurator)"><code>setSocketConfigurator(SocketConfigurator)</code></a></dd></dl> </li> </ul> <a name="setSocketConfigurator(com.rabbitmq.client.SocketConfigurator)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSocketConfigurator</h4> <pre>public void setSocketConfigurator(<a href="../../../com/rabbitmq/client/SocketConfigurator.html" title="interface in com.rabbitmq.client">SocketConfigurator</a> socketConfigurator)</pre> <div class="block">Set the socket configurator. This gets a chance to "configure" a socket before it has been opened. The default socket configurator disables Nagle's algorithm.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>socketConfigurator</code> - the configurator to use</dd></dl> </li> </ul> <a name="setSharedExecutor(java.util.concurrent.ExecutorService)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setSharedExecutor</h4> <pre>public void setSharedExecutor(java.util.concurrent.ExecutorService executor)</pre> <div class="block">Set the executor to use for consumer operation dispatch by default for newly created connections. All connections that use this executor share it. It's developer's responsibility to shut down the executor when it is no longer needed.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>executor</code> - executor service to be used for consumer operation</dd></dl> </li> </ul> <a name="setShutdownExecutor(java.util.concurrent.ExecutorService)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setShutdownExecutor</h4> <pre>public void setShutdownExecutor(java.util.concurrent.ExecutorService executor)</pre> <div class="block">Set the executor to use for connection shutdown. All connections that use this executor share it. It's developer's responsibility to shut down the executor when it is no longer needed.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>executor</code> - executor service to be used for connection shutdown</dd></dl> </li> </ul> <a name="setHeartbeatExecutor(java.util.concurrent.ScheduledExecutorService)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setHeartbeatExecutor</h4> <pre>public void setHeartbeatExecutor(java.util.concurrent.ScheduledExecutorService executor)</pre> <div class="block">Set the executor to use to send heartbeat frames. All connections that use this executor share it. It's developer's responsibility to shut down the executor when it is no longer needed.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>executor</code> - executor service to be used to send heartbeat</dd></dl> </li> </ul> <a name="getThreadFactory()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getThreadFactory</h4> <pre>public java.util.concurrent.ThreadFactory getThreadFactory()</pre> <div class="block">Retrieve the thread factory used to instantiate new threads.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><code>ThreadFactory</code></dd></dl> </li> </ul> <a name="setThreadFactory(java.util.concurrent.ThreadFactory)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setThreadFactory</h4> <pre>public void setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)</pre> <div class="block">Set the thread factory used to instantiate new threads.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><code>ThreadFactory</code></dd></dl> </li> </ul> <a name="getExceptionHandler()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getExceptionHandler</h4> <pre>public <a href="../../../com/rabbitmq/client/ExceptionHandler.html" title="interface in com.rabbitmq.client">ExceptionHandler</a> getExceptionHandler()</pre> <div class="block">Get the exception handler.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/ExceptionHandler.html" title="interface in com.rabbitmq.client"><code>ExceptionHandler</code></a></dd></dl> </li> </ul> <a name="setExceptionHandler(com.rabbitmq.client.ExceptionHandler)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setExceptionHandler</h4> <pre>public void setExceptionHandler(<a href="../../../com/rabbitmq/client/ExceptionHandler.html" title="interface in com.rabbitmq.client">ExceptionHandler</a> exceptionHandler)</pre> <div class="block">Set the exception handler to use for newly created connections.</div> <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../com/rabbitmq/client/ExceptionHandler.html" title="interface in com.rabbitmq.client"><code>ExceptionHandler</code></a></dd></dl> </li> </ul> <a name="isSSL()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isSSL</h4> <pre>public boolean isSSL()</pre> </li> </ul> <a name="useSslProtocol()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>useSslProtocol</h4> <pre>public void useSslProtocol() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException</pre> <div class="block">Convenience method for setting up a SSL socket factory, using the DEFAULT_SSL_PROTOCOL and a trusting TrustManager.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.security.NoSuchAlgorithmException</code></dd> <dd><code>java.security.KeyManagementException</code></dd></dl> </li> </ul> <a name="useSslProtocol(java.lang.String)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>useSslProtocol</h4> <pre>public void useSslProtocol(java.lang.String protocol) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException</pre> <div class="block">Convenience method for setting up a SSL socket factory, using the supplied protocol and a very trusting TrustManager.</div> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.security.NoSuchAlgorithmException</code></dd> <dd><code>java.security.KeyManagementException</code></dd></dl> </li> </ul> <a name="useSslProtocol(java.lang.String, javax.net.ssl.TrustManager)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>useSslProtocol</h4> <pre>public void useSslProtocol(java.lang.String protocol, javax.net.ssl.TrustManager trustManager) throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException</pre> <div class="block">Convenience method for setting up an SSL socket factory. Pass in the SSL protocol to use, e.g. "TLSv1" or "TLSv1.2".</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>protocol</code> - SSL protocol to use.</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.security.NoSuchAlgorithmException</code></dd> <dd><code>java.security.KeyManagementException</code></dd></dl> </li> </ul> <a name="useSslProtocol(javax.net.ssl.SSLContext)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>useSslProtocol</h4> <pre>public void useSslProtocol(javax.net.ssl.SSLContext context)</pre> <div class="block">Convenience method for setting up an SSL socket factory. Pass in an initialized SSLContext.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - An initialized SSLContext</dd></dl> </li> </ul> <a name="isAutomaticRecoveryEnabled()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isAutomaticRecoveryEnabled</h4> <pre>public boolean isAutomaticRecoveryEnabled()</pre> <div class="block">Returns true if <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a> is enabled, false otherwise</div> <dl><dt><span class="strong">Returns:</span></dt><dd>true if automatic connection recovery is enabled, false otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/api-guide.html#recovery">Automatic Recovery</a></dd></dl> </li> </ul> <a name="setAutomaticRecoveryEnabled(boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setAutomaticRecoveryEnabled</h4> <pre>public void setAutomaticRecoveryEnabled(boolean automaticRecovery)</pre> <div class="block">Enables or disables <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a>.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>automaticRecovery</code> - if true, enables connection recovery</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/api-guide.html#recovery">Automatic Recovery</a></dd></dl> </li> </ul> <a name="isTopologyRecoveryEnabled()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isTopologyRecoveryEnabled</h4> <pre>public boolean isTopologyRecoveryEnabled()</pre> <div class="block">Returns true if topology recovery is enabled, false otherwise</div> <dl><dt><span class="strong">Returns:</span></dt><dd>true if topology recovery is enabled, false otherwise</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/api-guide.html#recovery">Automatic Recovery</a></dd></dl> </li> </ul> <a name="setTopologyRecoveryEnabled(boolean)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setTopologyRecoveryEnabled</h4> <pre>public void setTopologyRecoveryEnabled(boolean topologyRecovery)</pre> <div class="block">Enables or disables topology recovery</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>topologyRecovery</code> - if true, enables topology recovery</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/api-guide.html#recovery">Automatic Recovery</a></dd></dl> </li> </ul> <a name="createFrameHandlerFactory()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createFrameHandlerFactory</h4> <pre>protected <a href="../../../com/rabbitmq/client/impl/FrameHandlerFactory.html" title="class in com.rabbitmq.client.impl">FrameHandlerFactory</a> createFrameHandlerFactory() throws java.io.IOException</pre> <dl><dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code></dd></dl> </li> </ul> <a name="newConnection(com.rabbitmq.client.Address[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newConnection</h4> <pre>public <a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a> newConnection(<a href="../../../com/rabbitmq/client/Address.html" title="class in com.rabbitmq.client">Address</a>[] addrs) throws java.io.IOException, java.util.concurrent.TimeoutException</pre> <div class="block">Create a new broker connection, picking the first available address from the list. If <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a> is enabled, the connection returned by this method will be <a href="../../../com/rabbitmq/client/Recoverable.html" title="interface in com.rabbitmq.client"><code>Recoverable</code></a>. Future reconnection attempts will pick a random accessible address from the provided list.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>addrs</code> - an array of known broker addresses (hostname/port pairs) to try in order</dd> <dt><span class="strong">Returns:</span></dt><dd>an interface to the connection</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if it encounters a problem</dd> <dd><code>java.util.concurrent.TimeoutException</code></dd></dl> </li> </ul> <a name="newConnection(java.util.concurrent.ExecutorService, com.rabbitmq.client.Address[])"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newConnection</h4> <pre>public <a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a> newConnection(java.util.concurrent.ExecutorService executor, <a href="../../../com/rabbitmq/client/Address.html" title="class in com.rabbitmq.client">Address</a>[] addrs) throws java.io.IOException, java.util.concurrent.TimeoutException</pre> <div class="block">Create a new broker connection, picking the first available address from the list. If <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a> is enabled, the connection returned by this method will be <a href="../../../com/rabbitmq/client/Recoverable.html" title="interface in com.rabbitmq.client"><code>Recoverable</code></a>. Future reconnection attempts will pick a random accessible address from the provided list.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>executor</code> - thread execution service for consumers on the connection</dd><dd><code>addrs</code> - an array of known broker addresses (hostname/port pairs) to try in order</dd> <dt><span class="strong">Returns:</span></dt><dd>an interface to the connection</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if it encounters a problem</dd> <dd><code>java.util.concurrent.TimeoutException</code></dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.rabbitmq.com/api-guide.html#recovery">Automatic Recovery</a></dd></dl> </li> </ul> <a name="params(java.util.concurrent.ExecutorService)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>params</h4> <pre>public <a href="../../../com/rabbitmq/client/impl/ConnectionParams.html" title="class in com.rabbitmq.client.impl">ConnectionParams</a> params(java.util.concurrent.ExecutorService consumerWorkServiceExecutor)</pre> </li> </ul> <a name="newConnection()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newConnection</h4> <pre>public <a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a> newConnection() throws java.io.IOException, java.util.concurrent.TimeoutException</pre> <div class="block">Create a new broker connection. If <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a> is enabled, the connection returned by this method will be <a href="../../../com/rabbitmq/client/Recoverable.html" title="interface in com.rabbitmq.client"><code>Recoverable</code></a>. Reconnection attempts will always use the address configured on <a href="../../../com/rabbitmq/client/ConnectionFactory.html" title="class in com.rabbitmq.client"><code>ConnectionFactory</code></a>.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>an interface to the connection</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if it encounters a problem</dd> <dd><code>java.util.concurrent.TimeoutException</code></dd></dl> </li> </ul> <a name="newConnection(java.util.concurrent.ExecutorService)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>newConnection</h4> <pre>public <a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client">Connection</a> newConnection(java.util.concurrent.ExecutorService executor) throws java.io.IOException, java.util.concurrent.TimeoutException</pre> <div class="block">Create a new broker connection. If <a href="http://www.rabbitmq.com/api-guide.html#recovery">automatic connection recovery</a> is enabled, the connection returned by this method will be <a href="../../../com/rabbitmq/client/Recoverable.html" title="interface in com.rabbitmq.client"><code>Recoverable</code></a>. Reconnection attempts will always use the address configured on <a href="../../../com/rabbitmq/client/ConnectionFactory.html" title="class in com.rabbitmq.client"><code>ConnectionFactory</code></a>.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>executor</code> - thread execution service for consumers on the connection</dd> <dt><span class="strong">Returns:</span></dt><dd>an interface to the connection</dd> <dt><span class="strong">Throws:</span></dt> <dd><code>java.io.IOException</code> - if it encounters a problem</dd> <dd><code>java.util.concurrent.TimeoutException</code></dd></dl> </li> </ul> <a name="clone()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clone</h4> <pre>public <a href="../../../com/rabbitmq/client/ConnectionFactory.html" title="class in com.rabbitmq.client">ConnectionFactory</a> clone()</pre> <dl> <dt><strong>Overrides:</strong></dt> <dd><code>clone</code> in class <code>java.lang.Object</code></dd> </dl> </li> </ul> <a name="getNetworkRecoveryInterval()"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getNetworkRecoveryInterval</h4> <pre>public long getNetworkRecoveryInterval()</pre> <div class="block">Returns automatic connection recovery interval in milliseconds.</div> <dl><dt><span class="strong">Returns:</span></dt><dd>how long will automatic recovery wait before attempting to reconnect, in ms; default is 5000</dd></dl> </li> </ul> <a name="setNetworkRecoveryInterval(int)"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setNetworkRecoveryInterval</h4> <pre>public void setNetworkRecoveryInterval(int networkRecoveryInterval)</pre> <div class="block">Sets connection recovery interval. Default is 5000.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>networkRecoveryInterval</code> - how long will automatic recovery wait before attempting to reconnect, in ms</dd></dl> </li> </ul> <a name="setNetworkRecoveryInterval(long)"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>setNetworkRecoveryInterval</h4> <pre>public void setNetworkRecoveryInterval(long networkRecoveryInterval)</pre> <div class="block">Sets connection recovery interval. Default is 5000.</div> <dl><dt><span class="strong">Parameters:</span></dt><dd><code>networkRecoveryInterval</code> - how long will automatic recovery wait before attempting to reconnect, in ms</dd></dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar_bottom"> <!-- --> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../com/rabbitmq/client/Connection.html" title="interface in com.rabbitmq.client"><span class="strong">Prev Class</span></a></li> <li><a href="../../../com/rabbitmq/client/Consumer.html" title="interface in com.rabbitmq.client"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?com/rabbitmq/client/ConnectionFactory.html" target="_top">Frames</a></li> <li><a href="ConnectionFactory.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field_summary">Field</a> | </li> <li><a href="#constructor_summary">Constr</a> | </li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field_detail">Field</a> | </li> <li><a href="#constructor_detail">Constr</a> | </li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>