| <!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 --> |
| <title>PoolFactory (Apache Geode 1.15.0)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="PoolFactory (Apache Geode 1.15.0)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":38}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <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="../../../../../org/apache/geode/cache/client/Pool.html" title="interface in org.apache.geode.cache.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/geode/cache/client/PoolManager.html" title="class in org.apache.geode.cache.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/geode/cache/client/PoolFactory.html" target="_top">Frames</a></li> |
| <li><a href="PoolFactory.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>Constr | </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>Constr | </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">org.apache.geode.cache.client</div> |
| <h2 title="Interface PoolFactory" class="title">Interface PoolFactory</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">PoolFactory</span></pre> |
| <div class="block">This interface provides for the configuration and creation of instances of <a href="../../../../../org/apache/geode/cache/client/Pool.html" title="interface in org.apache.geode.cache.client"><code>Pool</code></a>. |
| <p> |
| Every pool needs to have at least one <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addLocator-java.lang.String-int-"><code>locator</code></a> or <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addServer-java.lang.String-int-"><code>server</code></a> |
| added to it. Locators should be added unless direct connections to cache servers are desired. |
| <p> |
| The setter methods are used to specify non-default values for the other pool properties. |
| <p> |
| Once it is configured <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#create-java.lang.String-"><code>create(java.lang.String)</code></a> will produce an instance. |
| <p> |
| The factory can be restored to its default configuration by calling <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#reset--"><code>reset()</code></a>. |
| <p> |
| Instances of this interface can be created by calling <a href="../../../../../org/apache/geode/cache/client/PoolManager.html#createFactory--"><code>PoolManager.createFactory()</code></a>. |
| <p> |
| If a subscription is going to be made using a pool then subscriptions |
| <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSubscriptionEnabled-boolean-"><code>must be enabled</code></a> on the pool. Subscriptions are made using these |
| APIs: |
| <ul> |
| <li><a href="../../../../../org/apache/geode/cache/query/QueryService.html#newCq-java.lang.String-org.apache.geode.cache.query.CqAttributes-"><code>QueryService.newCq(String, CqAttributes)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/query/QueryService.html#newCq-java.lang.String-org.apache.geode.cache.query.CqAttributes-boolean-"><code>QueryService.newCq(String, CqAttributes, boolean)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/query/QueryService.html#newCq-java.lang.String-java.lang.String-org.apache.geode.cache.query.CqAttributes-"><code>QueryService.newCq(String, String, CqAttributes)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/query/QueryService.html#newCq-java.lang.String-java.lang.String-org.apache.geode.cache.query.CqAttributes-boolean-"><code>QueryService.newCq(String, String, CqAttributes, boolean)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterest-K-"><code>Region.registerInterest(Object)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterest-K-boolean-"><code>Region.registerInterest(Object, boolean)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterest-K-org.apache.geode.cache.InterestResultPolicy-"><code>Region.registerInterest(Object, InterestResultPolicy)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterest-K-org.apache.geode.cache.InterestResultPolicy-boolean-"><code>Region.registerInterest(Object, InterestResultPolicy, boolean)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterestRegex-java.lang.String-"><code>Region.registerInterestRegex(String)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterestRegex-java.lang.String-boolean-"><code>Region.registerInterestRegex(String, boolean)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterestRegex-java.lang.String-org.apache.geode.cache.InterestResultPolicy-"><code>Region.registerInterestRegex(String, InterestResultPolicy)</code></a> |
| <li><a href="../../../../../org/apache/geode/cache/Region.html#registerInterestRegex-java.lang.String-org.apache.geode.cache.InterestResultPolicy-boolean-"><code>Region.registerInterestRegex(String, InterestResultPolicy, boolean)</code></a> |
| </ul></div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 5.7</dd> |
| </dl> |
| </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="memberSummary" 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><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_FREE_CONNECTION_TIMEOUT">DEFAULT_FREE_CONNECTION_TIMEOUT</a></span></code> |
| <div class="block">The default amount of time, in milliseconds, which we will wait for a free connection if max |
| connections is set and all of the connections are in use.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_IDLE_TIMEOUT">DEFAULT_IDLE_TIMEOUT</a></span></code> |
| <div class="block">The default amount of time in milliseconds, to wait for a connection to become idle</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_LOAD_CONDITIONING_INTERVAL">DEFAULT_LOAD_CONDITIONING_INTERVAL</a></span></code> |
| <div class="block">The default interval in which the pool will check to see if a connection to a given server |
| should be moved to a different server to improve the load balance.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_MAX_CONNECTIONS">DEFAULT_MAX_CONNECTIONS</a></span></code> |
| <div class="block">The default maximum number of connections to create</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_MIN_CONNECTIONS">DEFAULT_MIN_CONNECTIONS</a></span></code> |
| <div class="block">The default number of connections to initially create</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_MULTIUSER_AUTHENTICATION">DEFAULT_MULTIUSER_AUTHENTICATION</a></span></code> |
| <div class="block">The default value for whether to use multiuser mode.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_PING_INTERVAL">DEFAULT_PING_INTERVAL</a></span></code> |
| <div class="block">The default frequency, in milliseconds, to ping servers.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_PR_SINGLE_HOP_ENABLED">DEFAULT_PR_SINGLE_HOP_ENABLED</a></span></code> |
| <div class="block">The default value for whether to have single hop optimisations enabled.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_READ_TIMEOUT">DEFAULT_READ_TIMEOUT</a></span></code> |
| <div class="block">The default amount of time, in milliseconds, to wait for a response from a server</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_RETRY_ATTEMPTS">DEFAULT_RETRY_ATTEMPTS</a></span></code> |
| <div class="block">The default number of times to retry an operation after a timeout or exception.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SERVER_CONNECTION_TIMEOUT">DEFAULT_SERVER_CONNECTION_TIMEOUT</a></span></code> |
| <div class="block">The default amount of time, in milliseconds, which we will wait for a server connection if max |
| connections is set and there is no free connections towards designated server.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SERVER_GROUP">DEFAULT_SERVER_GROUP</a></span></code> |
| <div class="block">The default server group.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SOCKET_BUFFER_SIZE">DEFAULT_SOCKET_BUFFER_SIZE</a></span></code> |
| <div class="block">Default size in bytes of the socket buffer on each connection established.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SOCKET_CONNECT_TIMEOUT">DEFAULT_SOCKET_CONNECT_TIMEOUT</a></span></code> |
| <div class="block">The default amount of time, in milliseconds, socket timeout when the client connects to the |
| servers/locators.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/geode/cache/client/SocketFactory.html" title="interface in org.apache.geode.cache.client">SocketFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SOCKET_FACTORY">DEFAULT_SOCKET_FACTORY</a></span></code> |
| <div class="block">The default value for the socket factory |
| |
| Current value <a href="../../../../../org/apache/geode/cache/client/SocketFactory.html#DEFAULT"><code>SocketFactory.DEFAULT</code></a></div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_STATISTIC_INTERVAL">DEFAULT_STATISTIC_INTERVAL</a></span></code> |
| <div class="block">The default frequency, in milliseconds, that client statistics will be sent to the server.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SUBSCRIPTION_ACK_INTERVAL">DEFAULT_SUBSCRIPTION_ACK_INTERVAL</a></span></code> |
| <div class="block">The default amount of time, in milliseconds, to wait before sending an acknowledgement to the |
| server about events received from the subscriptions.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SUBSCRIPTION_ENABLED">DEFAULT_SUBSCRIPTION_ENABLED</a></span></code> |
| <div class="block">The default value for whether to establish a server to client subscription.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT">DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT</a></span></code> |
| <div class="block">The default amount of time, in milliseconds, that messages sent from a server to a client will |
| be tracked.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SUBSCRIPTION_REDUNDANCY">DEFAULT_SUBSCRIPTION_REDUNDANCY</a></span></code> |
| <div class="block">The default redundancy for servers holding subscriptions established by this client</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_SUBSCRIPTION_TIMEOUT_MULTIPLIER">DEFAULT_SUBSCRIPTION_TIMEOUT_MULTIPLIER</a></span></code> |
| <div class="block">The default number of server "ping" intervals that can elapse with no activity before a |
| subscription connection is deemed dead and failover is initiated.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#DEFAULT_THREAD_LOCAL_CONNECTIONS">DEFAULT_THREAD_LOCAL_CONNECTIONS</a></span></code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Since Geode 1.10.0. Thread local connections are ignored. Will be removed in future |
| major release.</span></div> |
| </div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addLocator-java.lang.String-int-">addLocator</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> host, |
| int port)</code> |
| <div class="block">Add a locator, given its host and port, to this factory.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addServer-java.lang.String-int-">addServer</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> host, |
| int port)</code> |
| <div class="block">Add a server, given its host and port, to this factory.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/Pool.html" title="interface in org.apache.geode.cache.client">Pool</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#create-java.lang.String-">create</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> |
| <div class="block">Create a new Pool for connecting a client to a set of GemFire Cache Servers.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#reset--">reset</a></span>()</code> |
| <div class="block">Resets the configuration of this factory to its defaults.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setFreeConnectionTimeout-int-">setFreeConnectionTimeout</a></span>(int connectionTimeout)</code> |
| <div class="block">Sets the free connection timeout for this pool.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setIdleTimeout-long-">setIdleTimeout</a></span>(long idleTimeout)</code> |
| <div class="block">Set the amount of time a connection can be idle before expiring the connection.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setLoadConditioningInterval-int-">setLoadConditioningInterval</a></span>(int loadConditioningInterval)</code> |
| <div class="block">Sets the load conditioning interval for this pool.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setMaxConnections-int-">setMaxConnections</a></span>(int maxConnections)</code> |
| <div class="block">Set the max number of client to server connections that the pool will create.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setMinConnections-int-">setMinConnections</a></span>(int minConnections)</code> |
| <div class="block">Set the minimum number of connections to keep available at all times.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setMultiuserAuthentication-boolean-">setMultiuserAuthentication</a></span>(boolean enabled)</code> |
| <div class="block">If set to <code>true</code> then the created pool can be used by multiple authenticated users.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setPingInterval-long-">setPingInterval</a></span>(long pingInterval)</code> |
| <div class="block">How often to ping servers to verify that they are still alive.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setPRSingleHopEnabled-boolean-">setPRSingleHopEnabled</a></span>(boolean enabled)</code> |
| <div class="block">By default setPRSingleHopEnabled is <code>true</code> in which case the client is aware of the |
| location of partitions on servers hosting <a href="../../../../../org/apache/geode/cache/Region.html" title="interface in org.apache.geode.cache"><code>regions</code></a> with |
| <a href="../../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setReadTimeout-int-">setReadTimeout</a></span>(int timeout)</code> |
| <div class="block">Sets the number of milliseconds to wait for a response from a server before timing out the |
| operation and trying another server (if any are available).</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setRetryAttempts-int-">setRetryAttempts</a></span>(int retryAttempts)</code> |
| <div class="block">Set the number of times to retry a request after timeout/exception.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setServerConnectionTimeout-int-">setServerConnectionTimeout</a></span>(int serverConnectionTimeout)</code> |
| <div class="block">Sets the server connection timeout for this pool.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setServerGroup-java.lang.String-">setServerGroup</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> group)</code> |
| <div class="block">Configures the group that all servers this pool connects to must belong to.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSocketBufferSize-int-">setSocketBufferSize</a></span>(int bufferSize)</code> |
| <div class="block">Sets the socket buffer size for each connection made in this pool.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSocketConnectTimeout-int-">setSocketConnectTimeout</a></span>(int socketConnectTimeout)</code> |
| <div class="block">Sets the socket connect timeout for this pool.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSocketFactory-org.apache.geode.cache.client.SocketFactory-">setSocketFactory</a></span>(<a href="../../../../../org/apache/geode/cache/client/SocketFactory.html" title="interface in org.apache.geode.cache.client">SocketFactory</a> socketFactory)</code> |
| <div class="block">Set the socket factory used by this pool to create connections to both locators (if |
| configured using <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addLocator-java.lang.String-int-"><code>addLocator(String, int)</code></a>) and servers.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setStatisticInterval-int-">setStatisticInterval</a></span>(int statisticInterval)</code> |
| <div class="block">How often to send client statistics to the server.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSubscriptionAckInterval-int-">setSubscriptionAckInterval</a></span>(int ackInterval)</code> |
| <div class="block">Sets the interval in milliseconds to wait before sending acknowledgements to the cache server |
| for events received from the server subscriptions.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSubscriptionEnabled-boolean-">setSubscriptionEnabled</a></span>(boolean enabled)</code> |
| <div class="block">If set to <code>true</code> then the created pool will have server-to-client subscriptions |
| enabled.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSubscriptionMessageTrackingTimeout-int-">setSubscriptionMessageTrackingTimeout</a></span>(int messageTrackingTimeout)</code> |
| <div class="block">Sets the messageTrackingTimeout attribute which is the time-to-live period, in milliseconds, |
| for subscription events the client has received from the server.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSubscriptionRedundancy-int-">setSubscriptionRedundancy</a></span>(int redundancy)</code> |
| <div class="block">Sets the redundancy level for this pools server-to-client subscriptions.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setSubscriptionTimeoutMultiplier-int-">setSubscriptionTimeoutMultiplier</a></span>(int multiplier)</code> |
| <div class="block">A server has an inactivity monitor that ensures a message is sent to a client at least once a |
| minute (60,000 milliseconds).</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setThreadLocalConnections-boolean-">setThreadLocalConnections</a></span>(boolean threadLocalConnections)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Since Geode 1.10.0. Thread local connections are ignored. Will be removed in future |
| major release.</span></div> |
| </div> |
| </td> |
| </tr> |
| </table> |
| </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_SOCKET_CONNECT_TIMEOUT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SOCKET_CONNECT_TIMEOUT</h4> |
| <pre>static final int DEFAULT_SOCKET_CONNECT_TIMEOUT</pre> |
| <div class="block">The default amount of time, in milliseconds, socket timeout when the client connects to the |
| servers/locators. |
| <p> |
| Current value: <code>59000</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SOCKET_CONNECT_TIMEOUT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_FREE_CONNECTION_TIMEOUT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_FREE_CONNECTION_TIMEOUT</h4> |
| <pre>static final int DEFAULT_FREE_CONNECTION_TIMEOUT</pre> |
| <div class="block">The default amount of time, in milliseconds, which we will wait for a free connection if max |
| connections is set and all of the connections are in use. |
| <p> |
| Current value: <code>10000</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_FREE_CONNECTION_TIMEOUT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SERVER_CONNECTION_TIMEOUT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SERVER_CONNECTION_TIMEOUT</h4> |
| <pre>static final int DEFAULT_SERVER_CONNECTION_TIMEOUT</pre> |
| <div class="block">The default amount of time, in milliseconds, which we will wait for a server connection if max |
| connections is set and there is no free connections towards designated server. |
| <p> |
| Current value: <code>0</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SERVER_CONNECTION_TIMEOUT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_LOAD_CONDITIONING_INTERVAL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_LOAD_CONDITIONING_INTERVAL</h4> |
| <pre>static final int DEFAULT_LOAD_CONDITIONING_INTERVAL</pre> |
| <div class="block">The default interval in which the pool will check to see if a connection to a given server |
| should be moved to a different server to improve the load balance. |
| <p> |
| Current value: <code>300,000</code> (which is 5 minutes).</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_LOAD_CONDITIONING_INTERVAL">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SOCKET_BUFFER_SIZE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SOCKET_BUFFER_SIZE</h4> |
| <pre>static final int DEFAULT_SOCKET_BUFFER_SIZE</pre> |
| <div class="block">Default size in bytes of the socket buffer on each connection established. |
| <p> |
| Current value: <code>32768</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SOCKET_BUFFER_SIZE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_READ_TIMEOUT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_READ_TIMEOUT</h4> |
| <pre>static final int DEFAULT_READ_TIMEOUT</pre> |
| <div class="block">The default amount of time, in milliseconds, to wait for a response from a server |
| <p> |
| Current value: <code>10000</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_READ_TIMEOUT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_MIN_CONNECTIONS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_MIN_CONNECTIONS</h4> |
| <pre>static final int DEFAULT_MIN_CONNECTIONS</pre> |
| <div class="block">The default number of connections to initially create |
| <p> |
| Current value: <code>1</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_MIN_CONNECTIONS">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_MAX_CONNECTIONS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_MAX_CONNECTIONS</h4> |
| <pre>static final int DEFAULT_MAX_CONNECTIONS</pre> |
| <div class="block">The default maximum number of connections to create |
| <p> |
| Current value: <code>-1</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_MAX_CONNECTIONS">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_IDLE_TIMEOUT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_IDLE_TIMEOUT</h4> |
| <pre>static final long DEFAULT_IDLE_TIMEOUT</pre> |
| <div class="block">The default amount of time in milliseconds, to wait for a connection to become idle |
| <p> |
| Current value: <code>5000</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_IDLE_TIMEOUT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_RETRY_ATTEMPTS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_RETRY_ATTEMPTS</h4> |
| <pre>static final int DEFAULT_RETRY_ATTEMPTS</pre> |
| <div class="block">The default number of times to retry an operation after a timeout or exception. |
| <p> |
| Current value: <code>-1</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_RETRY_ATTEMPTS">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_PING_INTERVAL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_PING_INTERVAL</h4> |
| <pre>static final long DEFAULT_PING_INTERVAL</pre> |
| <div class="block">The default frequency, in milliseconds, to ping servers. |
| <p> |
| Current value: <code>10000</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_PING_INTERVAL">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_STATISTIC_INTERVAL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_STATISTIC_INTERVAL</h4> |
| <pre>static final int DEFAULT_STATISTIC_INTERVAL</pre> |
| <div class="block">The default frequency, in milliseconds, that client statistics will be sent to the server. |
| <p> |
| Current value: <code>-1</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_STATISTIC_INTERVAL">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_THREAD_LOCAL_CONNECTIONS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_THREAD_LOCAL_CONNECTIONS</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| static final boolean DEFAULT_THREAD_LOCAL_CONNECTIONS</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since Geode 1.10.0. Thread local connections are ignored. Will be removed in future |
| major release.</span></div> |
| <div class="block">The default value for whether connections should have affinity to the thread that last used |
| them. |
| <p> |
| Current value: <code>false</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_THREAD_LOCAL_CONNECTIONS">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SUBSCRIPTION_ENABLED"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SUBSCRIPTION_ENABLED</h4> |
| <pre>static final boolean DEFAULT_SUBSCRIPTION_ENABLED</pre> |
| <div class="block">The default value for whether to establish a server to client subscription. |
| <p> |
| Current value: <code>false</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SUBSCRIPTION_ENABLED">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SUBSCRIPTION_REDUNDANCY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SUBSCRIPTION_REDUNDANCY</h4> |
| <pre>static final int DEFAULT_SUBSCRIPTION_REDUNDANCY</pre> |
| <div class="block">The default redundancy for servers holding subscriptions established by this client |
| <p> |
| Current value: <code>0</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SUBSCRIPTION_REDUNDANCY">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT</h4> |
| <pre>static final int DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT</pre> |
| <div class="block">The default amount of time, in milliseconds, that messages sent from a server to a client will |
| be tracked. The tracking is done to minimize duplicate events. |
| <p> |
| Current value: <code>900000</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SUBSCRIPTION_ACK_INTERVAL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SUBSCRIPTION_ACK_INTERVAL</h4> |
| <pre>static final int DEFAULT_SUBSCRIPTION_ACK_INTERVAL</pre> |
| <div class="block">The default amount of time, in milliseconds, to wait before sending an acknowledgement to the |
| server about events received from the subscriptions. |
| <p> |
| Current value: <code>100</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SUBSCRIPTION_ACK_INTERVAL">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SUBSCRIPTION_TIMEOUT_MULTIPLIER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SUBSCRIPTION_TIMEOUT_MULTIPLIER</h4> |
| <pre>static final int DEFAULT_SUBSCRIPTION_TIMEOUT_MULTIPLIER</pre> |
| <div class="block">The default number of server "ping" intervals that can elapse with no activity before a |
| subscription connection is deemed dead and failover is initiated. |
| <p> |
| Current value: 0</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SUBSCRIPTION_TIMEOUT_MULTIPLIER">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SERVER_GROUP"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_SERVER_GROUP</h4> |
| <pre>static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> DEFAULT_SERVER_GROUP</pre> |
| <div class="block">The default server group. |
| <p> |
| Current value: <code>""</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_SERVER_GROUP">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_PR_SINGLE_HOP_ENABLED"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_PR_SINGLE_HOP_ENABLED</h4> |
| <pre>static final boolean DEFAULT_PR_SINGLE_HOP_ENABLED</pre> |
| <div class="block">The default value for whether to have single hop optimisations enabled. |
| <p> |
| Current value: <code>true</code>.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 6.5</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_PR_SINGLE_HOP_ENABLED">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_MULTIUSER_AUTHENTICATION"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DEFAULT_MULTIUSER_AUTHENTICATION</h4> |
| <pre>static final boolean DEFAULT_MULTIUSER_AUTHENTICATION</pre> |
| <div class="block">The default value for whether to use multiuser mode. |
| <p> |
| Current value: <code>false</code>.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 6.5</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.geode.cache.client.PoolFactory.DEFAULT_MULTIUSER_AUTHENTICATION">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="DEFAULT_SOCKET_FACTORY"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DEFAULT_SOCKET_FACTORY</h4> |
| <pre><a href="../../../../../org/apache/geode/annotations/Immutable.html" title="annotation in org.apache.geode.annotations">@Immutable</a> |
| static final <a href="../../../../../org/apache/geode/cache/client/SocketFactory.html" title="interface in org.apache.geode.cache.client">SocketFactory</a> DEFAULT_SOCKET_FACTORY</pre> |
| <div class="block">The default value for the socket factory |
| |
| Current value <a href="../../../../../org/apache/geode/cache/client/SocketFactory.html#DEFAULT"><code>SocketFactory.DEFAULT</code></a></div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="setSocketConnectTimeout-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSocketConnectTimeout</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSocketConnectTimeout(int socketConnectTimeout)</pre> |
| <div class="block">Sets the socket connect timeout for this pool. The number of milli seconds specified as socket |
| timeout when the client connects to the servers/locators. A timeout of zero is interpreted as |
| an infinite timeout. The connection will then block until established or an error occurs.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>socketConnectTimeout</code> - timeout in milliseconds when the client connects to the servers</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>socketConnectTimeout</code> is less than or equal to |
| <code>-1</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setFreeConnectionTimeout-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFreeConnectionTimeout</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setFreeConnectionTimeout(int connectionTimeout)</pre> |
| <div class="block">Sets the free connection timeout for this pool. If the pool has a max connections setting, |
| operations will block if all of the connections are in use. The free connection timeout |
| specifies how long those operations will block waiting for a free connection before receiving |
| an <a href="../../../../../org/apache/geode/cache/client/AllConnectionsInUseException.html" title="class in org.apache.geode.cache.client"><code>AllConnectionsInUseException</code></a>. If max connections is not set this setting has no |
| effect.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connectionTimeout</code> - the connection timeout in milliseconds</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>connectionTimeout</code> is less than or equal to |
| <code>0</code>.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setMaxConnections-int-"><code>setMaxConnections(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setServerConnectionTimeout-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setServerConnectionTimeout</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setServerConnectionTimeout(int serverConnectionTimeout)</pre> |
| <div class="block">Sets the server connection timeout for this pool. If the pool has a max connections setting, |
| operations will block if there is no free connection towards specific server. The server |
| connection timeout specifies how long those operations will block waiting for a free connection |
| towards specific server before receiving an <a href="../../../../../org/apache/geode/cache/client/AllConnectionsInUseException.html" title="class in org.apache.geode.cache.client"><code>AllConnectionsInUseException</code></a>. |
| If max connections is not set this setting has no effect. |
| It differs from "setFreeConnectionTimeout" which sets wait time for any server connection in |
| the pool, |
| where this sets wait time for a free connection to a specific server.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>serverConnectionTimeout</code> - the connection timeout in milliseconds</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>serverConnectionTimeout</code> is less than |
| <code>0</code>.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setMaxConnections-int-"><code>setMaxConnections(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setLoadConditioningInterval-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setLoadConditioningInterval</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setLoadConditioningInterval(int loadConditioningInterval)</pre> |
| <div class="block">Sets the load conditioning interval for this pool. This interval controls how frequently the |
| pool will check to see if a connection to a given server should be moved to a different server |
| to improve the load balance. |
| <p> |
| A value of <code>-1</code> disables load conditioning</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>loadConditioningInterval</code> - the connection lifetime in milliseconds</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>connectionLifetime</code> is less than |
| <code>-1</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSocketBufferSize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSocketBufferSize</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSocketBufferSize(int bufferSize)</pre> |
| <div class="block">Sets the socket buffer size for each connection made in this pool. Large messages can be |
| received and sent faster when this buffer is larger. Larger buffers also optimize the rate at |
| which servers can send events for client subscriptions.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>bufferSize</code> - the size of the socket buffers used for reading and writing on each |
| connection in this pool.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>bufferSize</code> is less than or equal to |
| <code>0</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setThreadLocalConnections-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setThreadLocalConnections</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setThreadLocalConnections(boolean threadLocalConnections)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since Geode 1.10.0. Thread local connections are ignored. Will be removed in future |
| major release.</span></div> |
| <div class="block">Sets the thread local connections policy for this pool. If <code>true</code> then any time a |
| thread goes to use a connection from this pool it will check a thread local cache and see if it |
| already has a connection in it. If so it will use it. If not it will get one from this pool and |
| cache it in the thread local. This gets rid of thread contention for the connections but |
| increases the number of connections the servers see. |
| <p> |
| If <code>false</code> then connections are returned to the pool as soon as the operation being |
| done with the connection completes. This allows connections to be shared amonst multiple |
| threads keeping the number of connections down.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>threadLocalConnections</code> - if <code>true</code> then enable thread local connections.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setReadTimeout-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setReadTimeout</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setReadTimeout(int timeout)</pre> |
| <div class="block">Sets the number of milliseconds to wait for a response from a server before timing out the |
| operation and trying another server (if any are available).</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>timeout</code> - number of milliseconds to wait for a response from a server</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>timeout</code> is less than <code>0</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setMinConnections-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMinConnections</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setMinConnections(int minConnections)</pre> |
| <div class="block">Set the minimum number of connections to keep available at all times. When the pool is created, |
| it will create this many connections. If <code>0</code> then connections will not be made until |
| an actual operation is done that requires client-to-server communication.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>minConnections</code> - the initial number of connections this pool will create.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>minConnections</code> is less than <code>0</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setMaxConnections-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMaxConnections</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setMaxConnections(int maxConnections)</pre> |
| <div class="block">Set the max number of client to server connections that the pool will create. If all of the |
| connections are in use, an operation requiring a client to server connection will block until a |
| connection is available.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>maxConnections</code> - the maximum number of connections in the pool. this pool will create. -1 |
| indicates that there is no maximum number of connections</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>maxConnections</code> is less than |
| <code>minConnections</code>.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setFreeConnectionTimeout-int-"><code>setFreeConnectionTimeout(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setIdleTimeout-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setIdleTimeout</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setIdleTimeout(long idleTimeout)</pre> |
| <div class="block">Set the amount of time a connection can be idle before expiring the connection. If the pool |
| size is greater than the minimum specified by <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setMinConnections-int-"><code>setMinConnections(int)</code></a>, |
| connections which have been idle for longer than the idleTimeout will be closed.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>idleTimeout</code> - The amount of time in milliseconds that an idle connection should live |
| before expiring. -1 indicates that connections should never expire.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>idleTimout</code> is less than <code>-1</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setRetryAttempts-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setRetryAttempts</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setRetryAttempts(int retryAttempts)</pre> |
| <div class="block">Set the number of times to retry a request after timeout/exception.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>retryAttempts</code> - The number of times to retry a request after timeout/exception. -1 |
| indicates that a request should be tried against every available server before failing</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>retryAttempts</code> is less than <code>-1</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setPingInterval-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPingInterval</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setPingInterval(long pingInterval)</pre> |
| <div class="block">How often to ping servers to verify that they are still alive. Each server will be sent a ping |
| every pingInterval if there has not been any other communication with the server. |
| |
| These pings are used by the server to monitor the health of the client. Make sure that the |
| pingInterval is less than the maximum time between pings allowed by the cache server.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pingInterval</code> - The amount of time in milliseconds between pings.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>pingInterval</code> is less than or equal to |
| <code>0</code>.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/geode/cache/server/CacheServer.html#setMaximumTimeBetweenPings-int-"><code>CacheServer.setMaximumTimeBetweenPings(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setStatisticInterval-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStatisticInterval</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setStatisticInterval(int statisticInterval)</pre> |
| <div class="block">How often to send client statistics to the server. Doing this allows <code>gfmon</code> to |
| monitor clients. |
| <p> |
| A value of <code>-1</code> disables the sending of client statistics to the server.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>statisticInterval</code> - The amount of time in milliseconds between sends of client statistics |
| to the server.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>statisticInterval</code> is less than |
| <code>-1</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setServerGroup-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setServerGroup</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setServerGroup(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> group)</pre> |
| <div class="block">Configures the group that all servers this pool connects to must belong to.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>group</code> - the server group that this pool will connect to. If <code>null</code> or |
| <code>""</code> then all servers will be connected to.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addLocator-java.lang.String-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addLocator</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> addLocator(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> host, |
| int port)</pre> |
| <div class="block">Add a locator, given its host and port, to this factory. The locator must be a server locator |
| and will be used to discover other running cache servers and locators. Note that if the host is |
| unknown at the time of this call the locator will still be added. When the pool is used for an |
| operation if the host is still unknown an exception will be thrown.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>host</code> - the host name or ip address that the locator is listening on.</dd> |
| <dd><code>port</code> - the port that the locator is listening on</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if port is outside the valid range of [0..65535] inclusive.</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if a server has already been <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addServer-java.lang.String-int-"><code>added</code></a> to this |
| factory.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addServer-java.lang.String-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addServer</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> addServer(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> host, |
| int port)</pre> |
| <div class="block">Add a server, given its host and port, to this factory. The server must be a cache server and |
| this client will directly connect to without consulting a server locator. Note that if the host |
| is unknown at the time of this call the server will still be added. When the pool is used for |
| an operation if the host is still unknown an exception will be thrown.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>host</code> - the host name or ip address that the server is listening on.</dd> |
| <dd><code>port</code> - the port that the server is listening on</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if port is outside the valid range of [0..65535] inclusive.</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if a locator has already been <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addLocator-java.lang.String-int-"><code>added</code></a> to this |
| factory.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSubscriptionEnabled-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSubscriptionEnabled</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSubscriptionEnabled(boolean enabled)</pre> |
| <div class="block">If set to <code>true</code> then the created pool will have server-to-client subscriptions |
| enabled. If set to <code>false</code> then all <code>Subscription*</code> attributes are |
| ignored at create time.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>enabled</code> - whether the created pool will have server-to-client subscriptions enabled</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSubscriptionRedundancy-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSubscriptionRedundancy</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSubscriptionRedundancy(int redundancy)</pre> |
| <div class="block">Sets the redundancy level for this pools server-to-client subscriptions. If <code>0</code> then |
| no redundant copies will be kept on the servers. Otherwise an effort will be made to maintain |
| the requested number of copies of the server-to-client subscriptions. At most one copy per |
| server will be made up to the requested level.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>redundancy</code> - the number of redundant servers for this client's subscriptions.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>redundancyLevel</code> is less than <code>-1</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSubscriptionMessageTrackingTimeout-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSubscriptionMessageTrackingTimeout</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSubscriptionMessageTrackingTimeout(int messageTrackingTimeout)</pre> |
| <div class="block">Sets the messageTrackingTimeout attribute which is the time-to-live period, in milliseconds, |
| for subscription events the client has received from the server. It's used to minimize |
| duplicate events. Entries that have not been modified for this amount of time are expired from |
| the list</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>messageTrackingTimeout</code> - number of milliseconds to set the timeout to.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>messageTrackingTimeout</code> is less than or equal |
| to <code>0</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSubscriptionTimeoutMultiplier-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSubscriptionTimeoutMultiplier</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSubscriptionTimeoutMultiplier(int multiplier)</pre> |
| <div class="block">A server has an inactivity monitor that ensures a message is sent to a client at least once a |
| minute (60,000 milliseconds). If a subscription timeout multiplier is set in the client it |
| enables timing out of the subscription feed with failover to another server. |
| <p> |
| The client will time out it's subscription connection after a number of seconds equal to this |
| multiplier times the server's subscription-timeout. |
| <p> |
| Set this to 2 or more to make sure the client will receive pings from the server before the |
| timeout. |
| <p> |
| A value of zero (the default) disables timeouts |
| <p> |
| The resulting timeout will be multiplied by 1.25 in order to avoid race conditions with the |
| server sending its "ping" message.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>multiplier</code> - the subscription timeout multiplier to set</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSubscriptionAckInterval-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSubscriptionAckInterval</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSubscriptionAckInterval(int ackInterval)</pre> |
| <div class="block">Sets the interval in milliseconds to wait before sending acknowledgements to the cache server |
| for events received from the server subscriptions.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>ackInterval</code> - number of milliseconds to wait before sending event acknowledgements.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>ackInterval</code> is less than or equal to |
| <code>0</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="reset--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> reset()</pre> |
| <div class="block">Resets the configuration of this factory to its defaults.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="create-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>create</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/Pool.html" title="interface in org.apache.geode.cache.client">Pool</a> create(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> |
| <div class="block">Create a new Pool for connecting a client to a set of GemFire Cache Servers. using this |
| factory's settings for attributes.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - the name of the pool, used when connecting regions to it</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the newly created pool.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if a pool with <code>name</code> already exists</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if a locator or server has not been added.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setPRSingleHopEnabled-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPRSingleHopEnabled</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setPRSingleHopEnabled(boolean enabled)</pre> |
| <div class="block">By default setPRSingleHopEnabled is <code>true</code> in which case the client is aware of the |
| location of partitions on servers hosting <a href="../../../../../org/apache/geode/cache/Region.html" title="interface in org.apache.geode.cache"><code>regions</code></a> with |
| <a href="../../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>DataPolicy.PARTITION</code></a>. Using this information, the client routes |
| the client cache operations directly to the server which is hosting the required partition for |
| the cache operation using a single network hop. This mode works best when |
| <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#setMaxConnections-int-"><code>setMaxConnections(int)</code></a> is set to <code>-1</code> which is the default. This mode |
| causes the client to have more connections to the servers. |
| <p> |
| If setPRSingleHopEnabled is <code>false</code> the client may need to do an extra network hop |
| on servers to go to the required partition for that cache operation. The client will use fewer |
| network connections to the servers. |
| <p> |
| Caution: for <a href="../../../../../org/apache/geode/cache/DataPolicy.html#PARTITION"><code>partition</code></a> regions with |
| <a href="../../../../../org/apache/geode/cache/PartitionAttributesFactory.html#setLocalMaxMemory-int-"><code>local-max-memory</code></a> equal to zero, no cache operations mentioned above will be routed to those |
| servers as they do not host any partitions.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>enabled</code> - whether Partitioned Region single hop is enabled</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 6.5</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setMultiuserAuthentication-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMultiuserAuthentication</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setMultiuserAuthentication(boolean enabled)</pre> |
| <div class="block">If set to <code>true</code> then the created pool can be used by multiple authenticated users. |
| <br> |
| |
| This setting should only be used for applications that require the client to authenticate |
| itself with the server multiple users. |
| |
| <br> |
| Note: If set to true, all the client side regions must have their data-policy set to empty.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>enabled</code> - whether the created pool can be used by multiple authenticated users</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code>this</code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>GemFire 6.5</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../org/apache/geode/cache/client/ClientCache.html#createAuthenticatedView-java.util.Properties-"><code>ClientCache.createAuthenticatedView(java.util.Properties)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSocketFactory-org.apache.geode.cache.client.SocketFactory-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setSocketFactory</h4> |
| <pre><a href="../../../../../org/apache/geode/cache/client/PoolFactory.html" title="interface in org.apache.geode.cache.client">PoolFactory</a> setSocketFactory(<a href="../../../../../org/apache/geode/cache/client/SocketFactory.html" title="interface in org.apache.geode.cache.client">SocketFactory</a> socketFactory)</pre> |
| <div class="block">Set the socket factory used by this pool to create connections to both locators (if |
| configured using <a href="../../../../../org/apache/geode/cache/client/PoolFactory.html#addLocator-java.lang.String-int-"><code>addLocator(String, int)</code></a>) and servers. |
| |
| see <a href="../../../../../org/apache/geode/cache/client/SocketFactory.html" title="interface in org.apache.geode.cache.client"><code>SocketFactory</code></a> |
| See <a href="../../../../../org/apache/geode/cache/client/proxy/ProxySocketFactories.html" title="class in org.apache.geode.cache.client.proxy"><code>ProxySocketFactories</code></a></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>socketFactory</code> - The <a href="../../../../../org/apache/geode/cache/client/SocketFactory.html" title="interface in org.apache.geode.cache.client"><code>SocketFactory</code></a> to use</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a reference to <code> this </code></dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>Geode 1.13</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> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <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="../../../../../org/apache/geode/cache/client/Pool.html" title="interface in org.apache.geode.cache.client"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/geode/cache/client/PoolManager.html" title="class in org.apache.geode.cache.client"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/geode/cache/client/PoolFactory.html" target="_top">Frames</a></li> |
| <li><a href="PoolFactory.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>Constr | </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>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |