1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.5.0) on Thu May 15 17:17:31 EDT 2008 --> 6<TITLE> 7ReplicationManagerAckPolicy (Oracle - Berkeley DB Java API) 8</TITLE> 9 10<META NAME="keywords" CONTENT="com.sleepycat.db.ReplicationManagerAckPolicy class"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../style.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 parent.document.title="ReplicationManagerAckPolicy (Oracle - Berkeley DB Java API)"; 18} 19</SCRIPT> 20<NOSCRIPT> 21</NOSCRIPT> 22 23</HEAD> 24 25<BODY BGCOLOR="white" onload="windowTitle();"> 26 27 28<!-- ========= START OF TOP NAVBAR ======= --> 29<A NAME="navbar_top"><!-- --></A> 30<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 31<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 32<TR> 33<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 34<A NAME="navbar_top_firstrow"><!-- --></A> 35<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 36 <TR ALIGN="center" VALIGN="top"> 37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReplicationManagerAckPolicy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 45 </TR> 46</TABLE> 47</TD> 48<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 49<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 50</TD> 51</TR> 52 53<TR> 54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 55 <A HREF="../../../com/sleepycat/db/ReplicationLockoutException.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 56 <A HREF="../../../com/sleepycat/db/ReplicationManagerSiteInfo.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../index.html?com/sleepycat/db/ReplicationManagerAckPolicy.html" target="_top"><B>FRAMES</B></A> 59 <A HREF="ReplicationManagerAckPolicy.html" target="_top"><B>NO FRAMES</B></A> 60 <SCRIPT type="text/javascript"> 61 <!-- 62 if(window==top) { 63 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 64 } 65 //--> 66</SCRIPT> 67<NOSCRIPT> 68 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 69</NOSCRIPT> 70 71 72</FONT></TD> 73</TR> 74<TR> 75<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 76 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 78DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 79</TR> 80</TABLE> 81<A NAME="skip-navbar_top"></A> 82<!-- ========= END OF TOP NAVBAR ========= --> 83 84<HR> 85<!-- ======== START OF CLASS DATA ======== --> 86<H2> 87<FONT SIZE="-1"> 88com.sleepycat.db</FONT> 89<BR> 90Class ReplicationManagerAckPolicy</H2> 91<PRE> 92<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> 93 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.sleepycat.db.ReplicationManagerAckPolicy</B> 94</PRE> 95<HR> 96<DL> 97<DT><PRE>public final class <B>ReplicationManagerAckPolicy</B><DT>extends <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL> 98</PRE> 99 100<P> 101A class that provides definitions for the types of network ack policyto use 102when transmitting messages between replication sites using theReplication 103Manager. 104<p> 105Set using the <A HREF="../../../com/sleepycat/db/EnvironmentConfig.html#setReplicationManagerAckPolicy(com.sleepycat.db.ReplicationManagerAckPolicy)"><CODE>EnvironmentConfig.setReplicationManagerAckPolicy</CODE></A> API. 106<P> 107 108<P> 109<HR> 110 111<P> 112<!-- =========== FIELD SUMMARY =========== --> 113 114<A NAME="field_summary"><!-- --></A> 115<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 116<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 117<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 118<B>Field Summary</B></FONT></TH> 119</TR> 120<TR BGCOLOR="white" CLASS="TableRowColor"> 121<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 122<CODE>static <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A></CODE></FONT></TD> 123<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html#ALL">ALL</A></B></CODE> 124 125<BR> 126 The master should wait until all replication clients have acknowledged 127 each permanent replication message.</TD> 128</TR> 129<TR BGCOLOR="white" CLASS="TableRowColor"> 130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 131<CODE>static <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A></CODE></FONT></TD> 132<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html#ALL_PEERS">ALL_PEERS</A></B></CODE> 133 134<BR> 135 The master should wait until all electable peers have acknowledged 136 each permanent replication message (where "electable peer" means a 137 client capable of being subsequently elected master of the 138 replication group).</TD> 139</TR> 140<TR BGCOLOR="white" CLASS="TableRowColor"> 141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 142<CODE>static <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A></CODE></FONT></TD> 143<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html#NONE">NONE</A></B></CODE> 144 145<BR> 146 The master should not wait for any client replication message 147 acknowledgments.</TD> 148</TR> 149<TR BGCOLOR="white" CLASS="TableRowColor"> 150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 151<CODE>static <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A></CODE></FONT></TD> 152<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html#ONE">ONE</A></B></CODE> 153 154<BR> 155 The master should wait until at least one client site has acknowledged 156 each permanent replication message.</TD> 157</TR> 158<TR BGCOLOR="white" CLASS="TableRowColor"> 159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 160<CODE>static <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A></CODE></FONT></TD> 161<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html#ONE_PEER">ONE_PEER</A></B></CODE> 162 163<BR> 164 The master should wait until at least one electable peer has acknowledged 165 each permanent replication message (where "electable peer" means a client 166 capable of being subsequently elected master of the replication group).</TD> 167</TR> 168<TR BGCOLOR="white" CLASS="TableRowColor"> 169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 170<CODE>static <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A></CODE></FONT></TD> 171<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html#QUORUM">QUORUM</A></B></CODE> 172 173<BR> 174 The master should wait until it has received acknowledgements from the 175 minimum number of electable peers sufficient to ensure that the effect 176 of the permanent record remains durable if an election is held (where 177 "electable peer" means a client capable of being subsequently elected 178 master of the replication group).</TD> 179</TR> 180</TABLE> 181 182<!-- ========== METHOD SUMMARY =========== --> 183 184<A NAME="method_summary"><!-- --></A> 185<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 186<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 187<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 188<B>Method Summary</B></FONT></TH> 189</TR> 190<TR BGCOLOR="white" CLASS="TableRowColor"> 191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 192<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> 193<TD><CODE><B><A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html#toString()">toString</A></B>()</CODE> 194 195<BR> 196 </TD> 197</TR> 198</TABLE> 199 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 200<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 201<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 202<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH> 203</TR> 204<TR BGCOLOR="white" CLASS="TableRowColor"> 205<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 206</TR> 207</TABLE> 208 209<P> 210 211<!-- ============ FIELD DETAIL =========== --> 212 213<A NAME="field_detail"><!-- --></A> 214<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 215<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 216<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 217<B>Field Detail</B></FONT></TH> 218</TR> 219</TABLE> 220 221<A NAME="ALL"><!-- --></A><H3> 222ALL</H3> 223<PRE> 224public static final <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A> <B>ALL</B></PRE> 225<DL> 226<DD>The master should wait until all replication clients have acknowledged 227 each permanent replication message. 228<P> 229<DL> 230</DL> 231</DL> 232<HR> 233 234<A NAME="ALL_PEERS"><!-- --></A><H3> 235ALL_PEERS</H3> 236<PRE> 237public static final <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A> <B>ALL_PEERS</B></PRE> 238<DL> 239<DD>The master should wait until all electable peers have acknowledged 240 each permanent replication message (where "electable peer" means a 241 client capable of being subsequently elected master of the 242 replication group). 243<P> 244<DL> 245</DL> 246</DL> 247<HR> 248 249<A NAME="NONE"><!-- --></A><H3> 250NONE</H3> 251<PRE> 252public static final <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A> <B>NONE</B></PRE> 253<DL> 254<DD>The master should not wait for any client replication message 255 acknowledgments. 256<P> 257<DL> 258</DL> 259</DL> 260<HR> 261 262<A NAME="ONE"><!-- --></A><H3> 263ONE</H3> 264<PRE> 265public static final <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A> <B>ONE</B></PRE> 266<DL> 267<DD>The master should wait until at least one client site has acknowledged 268 each permanent replication message. 269<P> 270<DL> 271</DL> 272</DL> 273<HR> 274 275<A NAME="ONE_PEER"><!-- --></A><H3> 276ONE_PEER</H3> 277<PRE> 278public static final <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A> <B>ONE_PEER</B></PRE> 279<DL> 280<DD>The master should wait until at least one electable peer has acknowledged 281 each permanent replication message (where "electable peer" means a client 282 capable of being subsequently elected master of the replication group). 283<P> 284<DL> 285</DL> 286</DL> 287<HR> 288 289<A NAME="QUORUM"><!-- --></A><H3> 290QUORUM</H3> 291<PRE> 292public static final <A HREF="../../../com/sleepycat/db/ReplicationManagerAckPolicy.html" title="class in com.sleepycat.db">ReplicationManagerAckPolicy</A> <B>QUORUM</B></PRE> 293<DL> 294<DD>The master should wait until it has received acknowledgements from the 295 minimum number of electable peers sufficient to ensure that the effect 296 of the permanent record remains durable if an election is held (where 297 "electable peer" means a client capable of being subsequently elected 298 master of the replication group). This is the default acknowledgement 299 policy. 300<P> 301<DL> 302</DL> 303</DL> 304 305<!-- ============ METHOD DETAIL ========== --> 306 307<A NAME="method_detail"><!-- --></A> 308<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 309<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 310<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 311<B>Method Detail</B></FONT></TH> 312</TR> 313</TABLE> 314 315<A NAME="toString()"><!-- --></A><H3> 316toString</H3> 317<PRE> 318public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> 319<DL> 320<DD> 321<P> 322<DD><DL> 323<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL> 324</DD> 325<DD><DL> 326</DL> 327</DD> 328</DL> 329<!-- ========= END OF CLASS DATA ========= --> 330<HR> 331 332 333<!-- ======= START OF BOTTOM NAVBAR ====== --> 334<A NAME="navbar_bottom"><!-- --></A> 335<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 336<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 337<TR> 338<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 339<A NAME="navbar_bottom_firstrow"><!-- --></A> 340<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 341 <TR ALIGN="center" VALIGN="top"> 342 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 343 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 344 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 345 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReplicationManagerAckPolicy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 346 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 347 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 348 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 349 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 350 </TR> 351</TABLE> 352</TD> 353<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 354<b>Berkeley DB</b><br><font size="-1"> version 4.7.25</font></EM> 355</TD> 356</TR> 357 358<TR> 359<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 360 <A HREF="../../../com/sleepycat/db/ReplicationLockoutException.html" title="class in com.sleepycat.db"><B>PREV CLASS</B></A> 361 <A HREF="../../../com/sleepycat/db/ReplicationManagerSiteInfo.html" title="class in com.sleepycat.db"><B>NEXT CLASS</B></A></FONT></TD> 362<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 363 <A HREF="../../../index.html?com/sleepycat/db/ReplicationManagerAckPolicy.html" target="_top"><B>FRAMES</B></A> 364 <A HREF="ReplicationManagerAckPolicy.html" target="_top"><B>NO FRAMES</B></A> 365 <SCRIPT type="text/javascript"> 366 <!-- 367 if(window==top) { 368 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 369 } 370 //--> 371</SCRIPT> 372<NOSCRIPT> 373 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 374</NOSCRIPT> 375 376 377</FONT></TD> 378</TR> 379<TR> 380<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 381 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 382<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 383DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 384</TR> 385</TABLE> 386<A NAME="skip-navbar_bottom"></A> 387<!-- ======== END OF BOTTOM NAVBAR ======= --> 388 389<HR> 390<font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 391</BODY> 392</HTML> 393