1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>Managing Connection Retries</title> 7 <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Getting Started with Replicated Berkeley DB Applications" /> 10 <link rel="up" href="repapp.html" title="Chapter��3.��The DB Replication Manager" /> 11 <link rel="prev" href="electiontimes.html" title="Managing Election Times" /> 12 <link rel="next" href="heartbeats.html" title="Managing Heartbeats" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">Managing Connection Retries</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="electiontimes.html">Prev</a>��</td> 22 <th width="60%" align="center">Chapter��3.��The DB Replication Manager</th> 23 <td width="20%" align="right">��<a accesskey="n" href="heartbeats.html">Next</a></td> 24 </tr> 25 </table> 26 <hr /> 27 </div> 28 <div class="sect1" lang="en" xml:lang="en"> 29 <div class="titlepage"> 30 <div> 31 <div> 32 <h2 class="title" style="clear: both"><a id="fmwrkconnectretry"></a>Managing Connection Retries</h2> 33 </div> 34 </div> 35 </div> 36 <p> 37 In the event that a communication failure occurs between 38 two environments in a replication group, the Replication Manager will wait a set 39 amount of time before attempting to re-establish the 40 connection. You can configure this wait value using 41 42 <span> 43 44 45 To do so, specify the 46 <code class="literal">DB_REP_CONNECTION_RETRY</code> 47 value to the <code class="literal">which</code> parameter and then a 48 retry value in microseconds to the 49 <code class="literal">timeout</code> parameter. 50 </span> 51 52 <span> 53 <code class="methodname">Environment.setReplicationTimeout()</code>. 54 You pass this method the 55 <code class="methodname">ReplicationTimeoutType.CONNECTION_RETRY</code> 56 constant and a retry value in microseconds. 57 </span> 58 </p> 59 </div> 60 <div class="navfooter"> 61 <hr /> 62 <table width="100%" summary="Navigation footer"> 63 <tr> 64 <td width="40%" align="left"><a accesskey="p" href="electiontimes.html">Prev</a>��</td> 65 <td width="20%" align="center"> 66 <a accesskey="u" href="repapp.html">Up</a> 67 </td> 68 <td width="40%" align="right">��<a accesskey="n" href="heartbeats.html">Next</a></td> 69 </tr> 70 <tr> 71 <td width="40%" align="left" valign="top">Managing Election Times��</td> 72 <td width="20%" align="center"> 73 <a accesskey="h" href="index.html">Home</a> 74 </td> 75 <td width="40%" align="right" valign="top">��Managing Heartbeats</td> 76 </tr> 77 </table> 78 </div> 79 </body> 80</html> 81