summaryrefslogtreecommitdiff
path: root/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/quorum/Leader.html
diff options
context:
space:
mode:
Diffstat (limited to '_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/quorum/Leader.html')
-rw-r--r--_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/quorum/Leader.html1429
1 files changed, 1429 insertions, 0 deletions
diff --git a/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/quorum/Leader.html b/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/quorum/Leader.html
new file mode 100644
index 000000000..6e6cc89a7
--- /dev/null
+++ b/_released_docs/r3.8.1/apidocs/zookeeper-server/org/apache/zookeeper/server/quorum/Leader.html
@@ -0,0 +1,1429 @@
+<!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 (1.8.0_352) on Wed Jan 25 17:31:44 CET 2023 -->
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Leader (Apache ZooKeeper - Server 3.8.1 API)</title>
+<meta name="date" content="2023-01-25">
+<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="Leader (Apache ZooKeeper - Server 3.8.1 API)";
+ }
+ }
+ catch(err) {
+ }
+//-->
+var methods = {"i0":10,"i1":9,"i2":10,"i3":10,"i4":9,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":9,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":9,"i39":10,"i40":9,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10};
+var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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="class-use/Leader.html">Use</a></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/zookeeper/server/quorum/FollowerZooKeeperServer.html" title="class in org.apache.zookeeper.server.quorum"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../../index.html?org/apache/zookeeper/server/quorum/Leader.html" target="_top">Frames</a></li>
+<li><a href="Leader.html" target="_top">No&nbsp;Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_top">
+<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
+<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method.summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.zookeeper.server.quorum</div>
+<h2 title="Class Leader" class="title">Class Leader</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
+<li>
+<ul class="inheritance">
+<li><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html" title="class in org.apache.zookeeper.server.quorum">org.apache.zookeeper.server.quorum.LearnerMaster</a></li>
+<li>
+<ul class="inheritance">
+<li>org.apache.zookeeper.server.quorum.Leader</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+<div class="description">
+<ul class="blockList">
+<li class="blockList">
+<hr>
+<br>
+<pre>public class <span class="typeNameLabel">Leader</span>
+extends <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html" title="class in org.apache.zookeeper.server.quorum">LearnerMaster</a></pre>
+<div class="block">This class has the control logic for the Leader.</div>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="nested.class.summary">
+<!-- -->
+</a>
+<h3>Nested Class Summary</h3>
+<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
+<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colFirst" scope="col">Modifier and Type</th>
+<th class="colLast" scope="col">Class and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static class&nbsp;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a></span></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>static class&nbsp;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.XidRolloverException.html" title="class in org.apache.zookeeper.server.quorum">Leader.XidRolloverException</a></span></code>&nbsp;</td>
+</tr>
+</table>
+</li>
+</ul>
+<!-- =========== 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">&nbsp;</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/zookeeper/server/quorum/Leader.html#ACKEPOCH">ACKEPOCH</a></span></code>
+<div class="block">This message is used by the follow to ack a proposed epoch.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#connectingFollowers">connectingFollowers</a></span></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#electingFollowers">electingFollowers</a></span></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>protected boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#electionFinished">electionFinished</a></span></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#LEADERINFO">LEADERINFO</a></span></code>
+<div class="block">This message is the first that a follower receives from the leader.</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/zookeeper/server/quorum/Leader.html#MAX_TIME_TO_WAIT_FOR_EPOCH">MAX_TIME_TO_WAIT_FOR_EPOCH</a></span></code>&nbsp;</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected <a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#newLeaderProposal">newLeaderProposal</a></span></code>&nbsp;</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>static int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#PROPOSAL">PROPOSAL</a></span></code>
+<div class="block">This message type is sent by a leader to propose a mutation.</div>
+</td>
+</tr>
+<tr class="altColor">
+<td class="colFirst"><code>protected boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#quorumFormed">quorumFormed</a></span></code>&nbsp;</td>
+</tr>
+</table>
+</li>
+</ul>
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor.summary">
+<!-- -->
+</a>
+<h3>Constructor Summary</h3>
+<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
+<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
+<tr>
+<th class="colOne" scope="col">Constructor and Description</th>
+</tr>
+<tr class="altColor">
+<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#Leader-org.apache.zookeeper.server.quorum.QuorumPeer-org.apache.zookeeper.server.quorum.LeaderZooKeeperServer-">Leader</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/QuorumPeer.html" title="class in org.apache.zookeeper.server.quorum">QuorumPeer</a>&nbsp;self,
+ <a href="../../../../../org/apache/zookeeper/server/quorum/LeaderZooKeeperServer.html" title="class in org.apache.zookeeper.server.quorum">LeaderZooKeeperServer</a>&nbsp;zk)</code>&nbsp;</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">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#addLearnerHandler-org.apache.zookeeper.server.quorum.LearnerHandler-">addLearnerHandler</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learner)</code>
+<div class="block">Adds peer to the leader.</div>
+</td>
+</tr>
+<tr id="i1" class="rowColor">
+<td class="colFirst"><code>static <a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/server/quorum/QuorumPacket.html?is-external=true" title="class or interface in org.apache.zookeeper.server.quorum">QuorumPacket</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#buildInformAndActivePacket-long-long-byte:A-">buildInformAndActivePacket</a></span>(long&nbsp;zxid,
+ long&nbsp;designatedLeader,
+ byte[]&nbsp;proposalData)</code>&nbsp;</td>
+</tr>
+<tr id="i2" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#commit-long-">commit</a></span>(long&nbsp;zxid)</code>
+<div class="block">Create a commit packet and send it to all the members of the quorum</div>
+</td>
+</tr>
+<tr id="i3" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#commitAndActivate-long-long-">commitAndActivate</a></span>(long&nbsp;zxid,
+ long&nbsp;designatedLeader)</code>&nbsp;</td>
+</tr>
+<tr id="i4" class="altColor">
+<td class="colFirst"><code>static int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getAckLoggingFrequency--">getAckLoggingFrequency</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i5" class="rowColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getAndDecrementFollowerCounter--">getAndDecrementFollowerCounter</a></span>()</code>
+<div class="block">decrement follower count</div>
+</td>
+</tr>
+<tr id="i6" class="altColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getCurrentTick--">getCurrentTick</a></span>()</code>
+<div class="block">the current tick</div>
+</td>
+</tr>
+<tr id="i7" class="rowColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getEpoch--">getEpoch</a></span>()</code>
+<div class="block">Returns the current epoch of the leader.</div>
+</td>
+</tr>
+<tr id="i8" class="altColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getEpochToPropose-long-long-">getEpochToPropose</a></span>(long&nbsp;sid,
+ long&nbsp;lastAcceptedEpoch)</code>
+<div class="block">get the first zxid of the next epoch</div>
+</td>
+</tr>
+<tr id="i9" class="rowColor">
+<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getForwardingFollowers--">getForwardingFollowers</a></span>()</code>
+<div class="block">Returns a copy of the current forwarding follower snapshot</div>
+</td>
+</tr>
+<tr id="i10" class="altColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getLastProposed--">getLastProposed</a></span>()</code>
+<div class="block">last proposed zxid</div>
+</td>
+</tr>
+<tr id="i11" class="rowColor">
+<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getLearners--">getLearners</a></span>()</code>
+<div class="block">Returns a copy of the current learner snapshot</div>
+</td>
+</tr>
+<tr id="i12" class="altColor">
+<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getNonVotingFollowers--">getNonVotingFollowers</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i13" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getNumPendingSyncs--">getNumPendingSyncs</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i14" class="altColor">
+<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getObservingLearners--">getObservingLearners</a></span>()</code>
+<div class="block">Returns a copy of the current observer snapshot</div>
+</td>
+</tr>
+<tr id="i15" class="rowColor">
+<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&gt;</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getObservingLearnersInfo--">getObservingLearnersInfo</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i16" class="altColor">
+<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/zookeeper/server/quorum/Leader.html#getPacketType-int-">getPacketType</a></span>(int&nbsp;packetType)</code>
+<div class="block">Get string representation of a given packet type</div>
+</td>
+</tr>
+<tr id="i17" class="rowColor">
+<td class="colFirst"><code><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/zookeeper/server/quorum/Leader.html#getPeerInfo-long-">getPeerInfo</a></span>(long&nbsp;sid)</code>&nbsp;</td>
+</tr>
+<tr id="i18" class="altColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/zookeeper/server/quorum/BufferStats.html" title="class in org.apache.zookeeper.server.quorum">BufferStats</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getProposalStats--">getProposalStats</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i19" class="rowColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/zookeeper/server/quorum/auth/QuorumAuthServer.html" title="interface in org.apache.zookeeper.server.quorum.auth">QuorumAuthServer</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getQuorumAuthServer--">getQuorumAuthServer</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i20" class="altColor">
+<td class="colFirst"><code>byte[]</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getQuorumVerifierBytes--">getQuorumVerifierBytes</a></span>()</code>
+<div class="block">identifier of current quorum verifier for new leader</div>
+</td>
+</tr>
+<tr id="i21" class="rowColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getQuorumVerifierVersion--">getQuorumVerifierVersion</a></span>()</code>
+<div class="block">version of current quorum verifier</div>
+</td>
+</tr>
+<tr id="i22" class="altColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getTickOfInitialAckDeadline--">getTickOfInitialAckDeadline</a></span>()</code>
+<div class="block">next deadline tick marking observer sync (steady state)</div>
+</td>
+</tr>
+<tr id="i23" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getTickOfNextAckDeadline--">getTickOfNextAckDeadline</a></span>()</code>
+<div class="block">deadline tick marking observer sync (initial)</div>
+</td>
+</tr>
+<tr id="i24" class="altColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getUptime--">getUptime</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i25" class="rowColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#getZKDatabase--">getZKDatabase</a></span>()</code>
+<div class="block">ZKDatabase</div>
+</td>
+</tr>
+<tr id="i26" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#inform-org.apache.zookeeper.server.quorum.Leader.Proposal-">inform</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a>&nbsp;proposal)</code>
+<div class="block">Create an inform packet and send it to all observers.</div>
+</td>
+</tr>
+<tr id="i27" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#informAndActivate-org.apache.zookeeper.server.quorum.Leader.Proposal-long-">informAndActivate</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a>&nbsp;proposal,
+ long&nbsp;designatedLeader)</code>
+<div class="block">Create an inform and activate packet and send it to all observers.</div>
+</td>
+</tr>
+<tr id="i28" class="altColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#isQuorumSynced-org.apache.zookeeper.server.quorum.flexible.QuorumVerifier-">isQuorumSynced</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/flexible/QuorumVerifier.html" title="interface in org.apache.zookeeper.server.quorum.flexible">QuorumVerifier</a>&nbsp;qv)</code>
+<div class="block">Returns true if a quorum in qv is connected and synced with the leader
+ and false otherwise</div>
+</td>
+</tr>
+<tr id="i29" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#processAck-long-long-java.net.SocketAddress-">processAck</a></span>(long&nbsp;sid,
+ long&nbsp;zxid,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>&nbsp;followerAddr)</code>
+<div class="block">Keep a count of acks that are received by the leader for a particular
+ proposal</div>
+</td>
+</tr>
+<tr id="i30" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#processSync-org.apache.zookeeper.server.quorum.LearnerSyncRequest-">processSync</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerSyncRequest.html" title="class in org.apache.zookeeper.server.quorum">LearnerSyncRequest</a>&nbsp;r)</code>
+<div class="block">Process sync requests</div>
+</td>
+</tr>
+<tr id="i31" class="rowColor">
+<td class="colFirst"><code><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#propose-org.apache.zookeeper.server.Request-">propose</a></span>(<a href="../../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a>&nbsp;request)</code>
+<div class="block">create a proposal and send it out to all the members</div>
+</td>
+</tr>
+<tr id="i32" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#registerLearnerHandlerBean-org.apache.zookeeper.server.quorum.LearnerHandler-java.net.Socket-">registerLearnerHandlerBean</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learnerHandler,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a>&nbsp;socket)</code>
+<div class="block">registers the handler's bean</div>
+</td>
+</tr>
+<tr id="i33" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#removeLearnerHandler-org.apache.zookeeper.server.quorum.LearnerHandler-">removeLearnerHandler</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;peer)</code>
+<div class="block">Remove the learner from the learner list</div>
+</td>
+</tr>
+<tr id="i34" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#reportLookingSid-long-">reportLookingSid</a></span>(long&nbsp;sid)</code>&nbsp;</td>
+</tr>
+<tr id="i35" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#resetObserverConnectionStats--">resetObserverConnectionStats</a></span>()</code>&nbsp;</td>
+</tr>
+<tr id="i36" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#revalidateSession-org.apache.zookeeper.server.quorum.QuorumPacket-org.apache.zookeeper.server.quorum.LearnerHandler-">revalidateSession</a></span>(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/server/quorum/QuorumPacket.html?is-external=true" title="class or interface in org.apache.zookeeper.server.quorum">QuorumPacket</a>&nbsp;qp,
+ <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learnerHandler)</code>
+<div class="block">handle revalidate packet</div>
+</td>
+</tr>
+<tr id="i37" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#sendSync-org.apache.zookeeper.server.quorum.LearnerSyncRequest-">sendSync</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerSyncRequest.html" title="class in org.apache.zookeeper.server.quorum">LearnerSyncRequest</a>&nbsp;r)</code>
+<div class="block">Sends a sync message to the appropriate server</div>
+</td>
+</tr>
+<tr id="i38" class="altColor">
+<td class="colFirst"><code>static void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#setAckLoggingFrequency-int-">setAckLoggingFrequency</a></span>(int&nbsp;frequency)</code>&nbsp;</td>
+</tr>
+<tr id="i39" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#setLeadingVoteSet-org.apache.zookeeper.server.quorum.SyncedLearnerTracker-">setLeadingVoteSet</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/SyncedLearnerTracker.html" title="class in org.apache.zookeeper.server.quorum">SyncedLearnerTracker</a>&nbsp;voteSet)</code>&nbsp;</td>
+</tr>
+<tr id="i40" class="altColor">
+<td class="colFirst"><code>static void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#setMaxTimeToWaitForEpoch-int-">setMaxTimeToWaitForEpoch</a></span>(int&nbsp;maxTimeToWaitForEpoch)</code>&nbsp;</td>
+</tr>
+<tr id="i41" class="rowColor">
+<td class="colFirst"><code>long</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#startForwarding-org.apache.zookeeper.server.quorum.LearnerHandler-long-">startForwarding</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;handler,
+ long&nbsp;lastSeenZxid)</code>
+<div class="block">lets the leader know that a follower is capable of following and is done
+ syncing</div>
+</td>
+</tr>
+<tr id="i42" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#submitLearnerRequest-org.apache.zookeeper.server.Request-">submitLearnerRequest</a></span>(<a href="../../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a>&nbsp;si)</code>
+<div class="block">proxy request from learner to server</div>
+</td>
+</tr>
+<tr id="i43" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#syncTimeout--">syncTimeout</a></span>()</code>
+<div class="block">time allowed for sync response</div>
+</td>
+</tr>
+<tr id="i44" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#touch-long-int-">touch</a></span>(long&nbsp;sess,
+ int&nbsp;to)</code>
+<div class="block">mark session as alive</div>
+</td>
+</tr>
+<tr id="i45" class="rowColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#tryToCommit-org.apache.zookeeper.server.quorum.Leader.Proposal-long-java.net.SocketAddress-">tryToCommit</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a>&nbsp;p,
+ long&nbsp;zxid,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>&nbsp;followerAddr)</code>&nbsp;</td>
+</tr>
+<tr id="i46" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#unregisterLearnerHandlerBean-org.apache.zookeeper.server.quorum.LearnerHandler-">unregisterLearnerHandlerBean</a></span>(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learnerHandler)</code>
+<div class="block">unregisters the handler's bean</div>
+</td>
+</tr>
+<tr id="i47" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#waitForEpochAck-long-org.apache.zookeeper.server.quorum.StateSummary-">waitForEpochAck</a></span>(long&nbsp;id,
+ <a href="../../../../../org/apache/zookeeper/server/quorum/StateSummary.html" title="class in org.apache.zookeeper.server.quorum">StateSummary</a>&nbsp;ss)</code>
+<div class="block">wait for the leader of the new epoch to be confirmed by followers</div>
+</td>
+</tr>
+<tr id="i48" class="altColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#waitForNewLeaderAck-long-long-">waitForNewLeaderAck</a></span>(long&nbsp;sid,
+ long&nbsp;zxid)</code>
+<div class="block">Process NEWLEADER ack of a given sid and wait until the leader receives
+ sufficient acks.</div>
+</td>
+</tr>
+<tr id="i49" class="rowColor">
+<td class="colFirst"><code>void</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.html#waitForStartup--">waitForStartup</a></span>()</code>
+<div class="block">wait for server to start</div>
+</td>
+</tr>
+</table>
+<ul class="blockList">
+<li class="blockList"><a name="methods.inherited.from.class.org.apache.zookeeper.server.quorum.LearnerMaster">
+<!-- -->
+</a>
+<h3>Methods inherited from class&nbsp;org.apache.zookeeper.server.quorum.<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html" title="class in org.apache.zookeeper.server.quorum">LearnerMaster</a></h3>
+<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getLearnerDiffSyncThrottler--">getLearnerDiffSyncThrottler</a>, <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getLearnerSnapSyncThrottler--">getLearnerSnapSyncThrottler</a>, <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getMaxConcurrentDiffSyncs--">getMaxConcurrentDiffSyncs</a>, <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getMaxConcurrentSnapSyncs--">getMaxConcurrentSnapSyncs</a>, <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#setMaxConcurrentDiffSyncs-int-">setMaxConcurrentDiffSyncs</a>, <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#setMaxConcurrentSnapSyncs-int-">setMaxConcurrentSnapSyncs</a></code></li>
+</ul>
+<ul class="blockList">
+<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
+<!-- -->
+</a>
+<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
+<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+<div class="details">
+<ul class="blockList">
+<li class="blockList">
+<!-- ============ FIELD DETAIL =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="field.detail">
+<!-- -->
+</a>
+<h3>Field Detail</h3>
+<a name="quorumFormed">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>quorumFormed</h4>
+<pre>protected&nbsp;boolean quorumFormed</pre>
+</li>
+</ul>
+<a name="LEADERINFO">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>LEADERINFO</h4>
+<pre>public static final&nbsp;int LEADERINFO</pre>
+<div class="block">This message is the first that a follower receives from the leader.
+ It has the protocol version and the epoch of the leader.</div>
+<dl>
+<dt><span class="seeLabel">See Also:</span></dt>
+<dd><a href="../../../../../constant-values.html#org.apache.zookeeper.server.quorum.Leader.LEADERINFO">Constant Field Values</a></dd>
+</dl>
+</li>
+</ul>
+<a name="ACKEPOCH">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>ACKEPOCH</h4>
+<pre>public static final&nbsp;int ACKEPOCH</pre>
+<div class="block">This message is used by the follow to ack a proposed epoch.</div>
+<dl>
+<dt><span class="seeLabel">See Also:</span></dt>
+<dd><a href="../../../../../constant-values.html#org.apache.zookeeper.server.quorum.Leader.ACKEPOCH">Constant Field Values</a></dd>
+</dl>
+</li>
+</ul>
+<a name="PROPOSAL">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>PROPOSAL</h4>
+<pre>public static final&nbsp;int PROPOSAL</pre>
+<div class="block">This message type is sent by a leader to propose a mutation.</div>
+<dl>
+<dt><span class="seeLabel">See Also:</span></dt>
+<dd><a href="../../../../../constant-values.html#org.apache.zookeeper.server.quorum.Leader.PROPOSAL">Constant Field Values</a></dd>
+</dl>
+</li>
+</ul>
+<a name="newLeaderProposal">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>newLeaderProposal</h4>
+<pre>protected final&nbsp;<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a> newLeaderProposal</pre>
+</li>
+</ul>
+<a name="connectingFollowers">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>connectingFollowers</h4>
+<pre>protected final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt; connectingFollowers</pre>
+</li>
+</ul>
+<a name="MAX_TIME_TO_WAIT_FOR_EPOCH">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>MAX_TIME_TO_WAIT_FOR_EPOCH</h4>
+<pre>public static final&nbsp;<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> MAX_TIME_TO_WAIT_FOR_EPOCH</pre>
+<dl>
+<dt><span class="seeLabel">See Also:</span></dt>
+<dd><a href="../../../../../constant-values.html#org.apache.zookeeper.server.quorum.Leader.MAX_TIME_TO_WAIT_FOR_EPOCH">Constant Field Values</a></dd>
+</dl>
+</li>
+</ul>
+<a name="electingFollowers">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>electingFollowers</h4>
+<pre>protected final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>&gt; electingFollowers</pre>
+</li>
+</ul>
+<a name="electionFinished">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>electionFinished</h4>
+<pre>protected&nbsp;boolean electionFinished</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor.detail">
+<!-- -->
+</a>
+<h3>Constructor Detail</h3>
+<a name="Leader-org.apache.zookeeper.server.quorum.QuorumPeer-org.apache.zookeeper.server.quorum.LeaderZooKeeperServer-">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>Leader</h4>
+<pre>public&nbsp;Leader(<a href="../../../../../org/apache/zookeeper/server/quorum/QuorumPeer.html" title="class in org.apache.zookeeper.server.quorum">QuorumPeer</a>&nbsp;self,
+ <a href="../../../../../org/apache/zookeeper/server/quorum/LeaderZooKeeperServer.html" title="class in org.apache.zookeeper.server.quorum">LeaderZooKeeperServer</a>&nbsp;zk)
+ throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
+<dl>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method.detail">
+<!-- -->
+</a>
+<h3>Method Detail</h3>
+<a name="setAckLoggingFrequency-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setAckLoggingFrequency</h4>
+<pre>public static&nbsp;void&nbsp;setAckLoggingFrequency(int&nbsp;frequency)</pre>
+</li>
+</ul>
+<a name="getAckLoggingFrequency--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getAckLoggingFrequency</h4>
+<pre>public static&nbsp;int&nbsp;getAckLoggingFrequency()</pre>
+</li>
+</ul>
+<a name="getProposalStats--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getProposalStats</h4>
+<pre>public&nbsp;<a href="../../../../../org/apache/zookeeper/server/quorum/BufferStats.html" title="class in org.apache.zookeeper.server.quorum">BufferStats</a>&nbsp;getProposalStats()</pre>
+</li>
+</ul>
+<a name="getLearners--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getLearners</h4>
+<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;&nbsp;getLearners()</pre>
+<div class="block">Returns a copy of the current learner snapshot</div>
+</li>
+</ul>
+<a name="getForwardingFollowers--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getForwardingFollowers</h4>
+<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;&nbsp;getForwardingFollowers()</pre>
+<div class="block">Returns a copy of the current forwarding follower snapshot</div>
+</li>
+</ul>
+<a name="getNonVotingFollowers--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getNonVotingFollowers</h4>
+<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;&nbsp;getNonVotingFollowers()</pre>
+</li>
+</ul>
+<a name="getObservingLearners--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getObservingLearners</h4>
+<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&gt;&nbsp;getObservingLearners()</pre>
+<div class="block">Returns a copy of the current observer snapshot</div>
+</li>
+</ul>
+<a name="getObservingLearnersInfo--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getObservingLearnersInfo</h4>
+<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&gt;&nbsp;getObservingLearnersInfo()</pre>
+</li>
+</ul>
+<a name="resetObserverConnectionStats--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>resetObserverConnectionStats</h4>
+<pre>public&nbsp;void&nbsp;resetObserverConnectionStats()</pre>
+</li>
+</ul>
+<a name="getNumPendingSyncs--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getNumPendingSyncs</h4>
+<pre>public&nbsp;int&nbsp;getNumPendingSyncs()</pre>
+</li>
+</ul>
+<a name="addLearnerHandler-org.apache.zookeeper.server.quorum.LearnerHandler-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>addLearnerHandler</h4>
+<pre>public&nbsp;void&nbsp;addLearnerHandler(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learner)</pre>
+<div class="block">Adds peer to the leader.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>learner</code> - instance of learner handle</dd>
+</dl>
+</li>
+</ul>
+<a name="removeLearnerHandler-org.apache.zookeeper.server.quorum.LearnerHandler-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>removeLearnerHandler</h4>
+<pre>public&nbsp;void&nbsp;removeLearnerHandler(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;peer)</pre>
+<div class="block">Remove the learner from the learner list</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>peer</code> - </dd>
+</dl>
+</li>
+</ul>
+<a name="isQuorumSynced-org.apache.zookeeper.server.quorum.flexible.QuorumVerifier-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>isQuorumSynced</h4>
+<pre>public&nbsp;boolean&nbsp;isQuorumSynced(<a href="../../../../../org/apache/zookeeper/server/quorum/flexible/QuorumVerifier.html" title="interface in org.apache.zookeeper.server.quorum.flexible">QuorumVerifier</a>&nbsp;qv)</pre>
+<div class="block">Returns true if a quorum in qv is connected and synced with the leader
+ and false otherwise</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>qv</code> - is a QuorumVerifier</dd>
+</dl>
+</li>
+</ul>
+<a name="getUptime--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getUptime</h4>
+<pre>public&nbsp;long&nbsp;getUptime()</pre>
+</li>
+</ul>
+<a name="tryToCommit-org.apache.zookeeper.server.quorum.Leader.Proposal-long-java.net.SocketAddress-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>tryToCommit</h4>
+<pre>public&nbsp;boolean&nbsp;tryToCommit(<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a>&nbsp;p,
+ long&nbsp;zxid,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>&nbsp;followerAddr)</pre>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>True if committed, otherwise false.</dd>
+</dl>
+</li>
+</ul>
+<a name="processAck-long-long-java.net.SocketAddress-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>processAck</h4>
+<pre>public&nbsp;void&nbsp;processAck(long&nbsp;sid,
+ long&nbsp;zxid,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>&nbsp;followerAddr)</pre>
+<div class="block">Keep a count of acks that are received by the leader for a particular
+ proposal</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>sid</code> - is the id of the server that sent the ack</dd>
+<dd><code>zxid</code> - is the zxid of the proposal sent out</dd>
+<dd><code>followerAddr</code> - </dd>
+</dl>
+</li>
+</ul>
+<a name="commit-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>commit</h4>
+<pre>public&nbsp;void&nbsp;commit(long&nbsp;zxid)</pre>
+<div class="block">Create a commit packet and send it to all the members of the quorum</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>zxid</code> - </dd>
+</dl>
+</li>
+</ul>
+<a name="commitAndActivate-long-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>commitAndActivate</h4>
+<pre>public&nbsp;void&nbsp;commitAndActivate(long&nbsp;zxid,
+ long&nbsp;designatedLeader)</pre>
+</li>
+</ul>
+<a name="inform-org.apache.zookeeper.server.quorum.Leader.Proposal-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>inform</h4>
+<pre>public&nbsp;void&nbsp;inform(<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a>&nbsp;proposal)</pre>
+<div class="block">Create an inform packet and send it to all observers.</div>
+</li>
+</ul>
+<a name="buildInformAndActivePacket-long-long-byte:A-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>buildInformAndActivePacket</h4>
+<pre>public static&nbsp;<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/server/quorum/QuorumPacket.html?is-external=true" title="class or interface in org.apache.zookeeper.server.quorum">QuorumPacket</a>&nbsp;buildInformAndActivePacket(long&nbsp;zxid,
+ long&nbsp;designatedLeader,
+ byte[]&nbsp;proposalData)</pre>
+</li>
+</ul>
+<a name="informAndActivate-org.apache.zookeeper.server.quorum.Leader.Proposal-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>informAndActivate</h4>
+<pre>public&nbsp;void&nbsp;informAndActivate(<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a>&nbsp;proposal,
+ long&nbsp;designatedLeader)</pre>
+<div class="block">Create an inform and activate packet and send it to all observers.</div>
+</li>
+</ul>
+<a name="getLastProposed--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getLastProposed</h4>
+<pre>public&nbsp;long&nbsp;getLastProposed()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getLastProposed--">LearnerMaster</a></code></span></div>
+<div class="block">last proposed zxid</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>last proposed zxid</dd>
+</dl>
+</li>
+</ul>
+<a name="getEpoch--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getEpoch</h4>
+<pre>public&nbsp;long&nbsp;getEpoch()</pre>
+<div class="block">Returns the current epoch of the leader.</div>
+</li>
+</ul>
+<a name="propose-org.apache.zookeeper.server.Request-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>propose</h4>
+<pre>public&nbsp;<a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum">Leader.Proposal</a>&nbsp;propose(<a href="../../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a>&nbsp;request)
+ throws <a href="../../../../../org/apache/zookeeper/server/quorum/Leader.XidRolloverException.html" title="class in org.apache.zookeeper.server.quorum">Leader.XidRolloverException</a></pre>
+<div class="block">create a proposal and send it out to all the members</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>request</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>the proposal that is queued to send to all the members</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.XidRolloverException.html" title="class in org.apache.zookeeper.server.quorum">Leader.XidRolloverException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="processSync-org.apache.zookeeper.server.quorum.LearnerSyncRequest-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>processSync</h4>
+<pre>public&nbsp;void&nbsp;processSync(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerSyncRequest.html" title="class in org.apache.zookeeper.server.quorum">LearnerSyncRequest</a>&nbsp;r)</pre>
+<div class="block">Process sync requests</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>r</code> - the request</dd>
+</dl>
+</li>
+</ul>
+<a name="sendSync-org.apache.zookeeper.server.quorum.LearnerSyncRequest-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>sendSync</h4>
+<pre>public&nbsp;void&nbsp;sendSync(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerSyncRequest.html" title="class in org.apache.zookeeper.server.quorum">LearnerSyncRequest</a>&nbsp;r)</pre>
+<div class="block">Sends a sync message to the appropriate server</div>
+</li>
+</ul>
+<a name="startForwarding-org.apache.zookeeper.server.quorum.LearnerHandler-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>startForwarding</h4>
+<pre>public&nbsp;long&nbsp;startForwarding(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;handler,
+ long&nbsp;lastSeenZxid)</pre>
+<div class="block">lets the leader know that a follower is capable of following and is done
+ syncing</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>handler</code> - handler of the follower</dd>
+<dd><code>lastSeenZxid</code> - zxid of learner</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>last proposed zxid</dd>
+</dl>
+</li>
+</ul>
+<a name="waitForStartup--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>waitForStartup</h4>
+<pre>public&nbsp;void&nbsp;waitForStartup()
+ throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#waitForStartup--">LearnerMaster</a></code></span></div>
+<div class="block">wait for server to start</div>
+<dl>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="setMaxTimeToWaitForEpoch-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setMaxTimeToWaitForEpoch</h4>
+<pre>public static&nbsp;void&nbsp;setMaxTimeToWaitForEpoch(int&nbsp;maxTimeToWaitForEpoch)</pre>
+</li>
+</ul>
+<a name="setLeadingVoteSet-org.apache.zookeeper.server.quorum.SyncedLearnerTracker-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>setLeadingVoteSet</h4>
+<pre>public&nbsp;void&nbsp;setLeadingVoteSet(<a href="../../../../../org/apache/zookeeper/server/quorum/SyncedLearnerTracker.html" title="class in org.apache.zookeeper.server.quorum">SyncedLearnerTracker</a>&nbsp;voteSet)</pre>
+</li>
+</ul>
+<a name="reportLookingSid-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>reportLookingSid</h4>
+<pre>public&nbsp;void&nbsp;reportLookingSid(long&nbsp;sid)</pre>
+</li>
+</ul>
+<a name="getEpochToPropose-long-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getEpochToPropose</h4>
+<pre>public&nbsp;long&nbsp;getEpochToPropose(long&nbsp;sid,
+ long&nbsp;lastAcceptedEpoch)
+ throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a>,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getEpochToPropose-long-long-">LearnerMaster</a></code></span></div>
+<div class="block">get the first zxid of the next epoch</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>sid</code> - learner id</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>the first zxid of the next epoch</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="getZKDatabase--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getZKDatabase</h4>
+<pre>public&nbsp;<a href="../../../../../org/apache/zookeeper/server/ZKDatabase.html" title="class in org.apache.zookeeper.server">ZKDatabase</a>&nbsp;getZKDatabase()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getZKDatabase--">LearnerMaster</a></code></span></div>
+<div class="block">ZKDatabase</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>ZKDatabase</dd>
+</dl>
+</li>
+</ul>
+<a name="waitForEpochAck-long-org.apache.zookeeper.server.quorum.StateSummary-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>waitForEpochAck</h4>
+<pre>public&nbsp;void&nbsp;waitForEpochAck(long&nbsp;id,
+ <a href="../../../../../org/apache/zookeeper/server/quorum/StateSummary.html" title="class in org.apache.zookeeper.server.quorum">StateSummary</a>&nbsp;ss)
+ throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#waitForEpochAck-long-org.apache.zookeeper.server.quorum.StateSummary-">LearnerMaster</a></code></span></div>
+<div class="block">wait for the leader of the new epoch to be confirmed by followers</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>id</code> - learner id</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="waitForNewLeaderAck-long-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>waitForNewLeaderAck</h4>
+<pre>public&nbsp;void&nbsp;waitForNewLeaderAck(long&nbsp;sid,
+ long&nbsp;zxid)
+ throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
+<div class="block">Process NEWLEADER ack of a given sid and wait until the leader receives
+ sufficient acks.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>sid</code> - </dd>
+<dd><code>zxid</code> - zxid at learner</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="getPacketType-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getPacketType</h4>
+<pre>public static&nbsp;<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>&nbsp;getPacketType(int&nbsp;packetType)</pre>
+<div class="block">Get string representation of a given packet type</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>packetType</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>string representing the packet type</dd>
+</dl>
+</li>
+</ul>
+<a name="getCurrentTick--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getCurrentTick</h4>
+<pre>public&nbsp;int&nbsp;getCurrentTick()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getCurrentTick--">LearnerMaster</a></code></span></div>
+<div class="block">the current tick</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>the current tick</dd>
+</dl>
+</li>
+</ul>
+<a name="syncTimeout--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>syncTimeout</h4>
+<pre>public&nbsp;int&nbsp;syncTimeout()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#syncTimeout--">LearnerMaster</a></code></span></div>
+<div class="block">time allowed for sync response</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>time allowed for sync response</dd>
+</dl>
+</li>
+</ul>
+<a name="getTickOfNextAckDeadline--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getTickOfNextAckDeadline</h4>
+<pre>public&nbsp;int&nbsp;getTickOfNextAckDeadline()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getTickOfNextAckDeadline--">LearnerMaster</a></code></span></div>
+<div class="block">deadline tick marking observer sync (initial)</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>deadline tick marking observer sync (initial)</dd>
+</dl>
+</li>
+</ul>
+<a name="getTickOfInitialAckDeadline--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getTickOfInitialAckDeadline</h4>
+<pre>public&nbsp;int&nbsp;getTickOfInitialAckDeadline()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getTickOfInitialAckDeadline--">LearnerMaster</a></code></span></div>
+<div class="block">next deadline tick marking observer sync (steady state)</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>next deadline tick marking observer sync (steady state)</dd>
+</dl>
+</li>
+</ul>
+<a name="getAndDecrementFollowerCounter--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getAndDecrementFollowerCounter</h4>
+<pre>public&nbsp;long&nbsp;getAndDecrementFollowerCounter()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getAndDecrementFollowerCounter--">LearnerMaster</a></code></span></div>
+<div class="block">decrement follower count</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>previous follower count</dd>
+</dl>
+</li>
+</ul>
+<a name="touch-long-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>touch</h4>
+<pre>public&nbsp;void&nbsp;touch(long&nbsp;sess,
+ int&nbsp;to)</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#touch-long-int-">LearnerMaster</a></code></span></div>
+<div class="block">mark session as alive</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>sess</code> - session id</dd>
+<dd><code>to</code> - timeout</dd>
+</dl>
+</li>
+</ul>
+<a name="submitLearnerRequest-org.apache.zookeeper.server.Request-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>submitLearnerRequest</h4>
+<pre>public&nbsp;void&nbsp;submitLearnerRequest(<a href="../../../../../org/apache/zookeeper/server/Request.html" title="class in org.apache.zookeeper.server">Request</a>&nbsp;si)</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#submitLearnerRequest-org.apache.zookeeper.server.Request-">LearnerMaster</a></code></span></div>
+<div class="block">proxy request from learner to server</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>si</code> - request</dd>
+</dl>
+</li>
+</ul>
+<a name="getQuorumVerifierVersion--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getQuorumVerifierVersion</h4>
+<pre>public&nbsp;long&nbsp;getQuorumVerifierVersion()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getQuorumVerifierVersion--">LearnerMaster</a></code></span></div>
+<div class="block">version of current quorum verifier</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>version of current quorum verifier</dd>
+</dl>
+</li>
+</ul>
+<a name="getPeerInfo-long-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getPeerInfo</h4>
+<pre>public&nbsp;<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>&nbsp;getPeerInfo(long&nbsp;sid)</pre>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>sid</code> - server id</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>server information in the view</dd>
+</dl>
+</li>
+</ul>
+<a name="getQuorumVerifierBytes--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getQuorumVerifierBytes</h4>
+<pre>public&nbsp;byte[]&nbsp;getQuorumVerifierBytes()</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#getQuorumVerifierBytes--">LearnerMaster</a></code></span></div>
+<div class="block">identifier of current quorum verifier for new leader</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>identifier of current quorum verifier for new leader</dd>
+</dl>
+</li>
+</ul>
+<a name="getQuorumAuthServer--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getQuorumAuthServer</h4>
+<pre>public&nbsp;<a href="../../../../../org/apache/zookeeper/server/quorum/auth/QuorumAuthServer.html" title="interface in org.apache.zookeeper.server.quorum.auth">QuorumAuthServer</a>&nbsp;getQuorumAuthServer()</pre>
+</li>
+</ul>
+<a name="revalidateSession-org.apache.zookeeper.server.quorum.QuorumPacket-org.apache.zookeeper.server.quorum.LearnerHandler-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>revalidateSession</h4>
+<pre>public&nbsp;void&nbsp;revalidateSession(<a href="http://zookeeper.apache.org/zookeeper-jute/apidocs/org/apache/zookeeper/server/quorum/QuorumPacket.html?is-external=true" title="class or interface in org.apache.zookeeper.server.quorum">QuorumPacket</a>&nbsp;qp,
+ <a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learnerHandler)
+ throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#revalidateSession-org.apache.zookeeper.server.quorum.QuorumPacket-org.apache.zookeeper.server.quorum.LearnerHandler-">LearnerMaster</a></code></span></div>
+<div class="block">handle revalidate packet</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>qp</code> - session packet</dd>
+<dd><code>learnerHandler</code> - learner</dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="registerLearnerHandlerBean-org.apache.zookeeper.server.quorum.LearnerHandler-java.net.Socket-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>registerLearnerHandlerBean</h4>
+<pre>public&nbsp;void&nbsp;registerLearnerHandlerBean(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learnerHandler,
+ <a href="https://docs.oracle.com/javase/8/docs/api/java/net/Socket.html?is-external=true" title="class or interface in java.net">Socket</a>&nbsp;socket)</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#registerLearnerHandlerBean-org.apache.zookeeper.server.quorum.LearnerHandler-java.net.Socket-">LearnerMaster</a></code></span></div>
+<div class="block">registers the handler's bean</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>learnerHandler</code> - handler</dd>
+<dd><code>socket</code> - connection to learner</dd>
+</dl>
+</li>
+</ul>
+<a name="unregisterLearnerHandlerBean-org.apache.zookeeper.server.quorum.LearnerHandler-">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>unregisterLearnerHandlerBean</h4>
+<pre>public&nbsp;void&nbsp;unregisterLearnerHandlerBean(<a href="../../../../../org/apache/zookeeper/server/quorum/LearnerHandler.html" title="class in org.apache.zookeeper.server.quorum">LearnerHandler</a>&nbsp;learnerHandler)</pre>
+<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/zookeeper/server/quorum/LearnerMaster.html#unregisterLearnerHandlerBean-org.apache.zookeeper.server.quorum.LearnerHandler-">LearnerMaster</a></code></span></div>
+<div class="block">unregisters the handler's bean</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>learnerHandler</code> - handler</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="class-use/Leader.html">Use</a></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/zookeeper/server/quorum/FollowerZooKeeperServer.html" title="class in org.apache.zookeeper.server.quorum"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
+<li><a href="../../../../../org/apache/zookeeper/server/quorum/Leader.Proposal.html" title="class in org.apache.zookeeper.server.quorum"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
+</ul>
+<ul class="navList">
+<li><a href="../../../../../index.html?org/apache/zookeeper/server/quorum/Leader.html" target="_top">Frames</a></li>
+<li><a href="Leader.html" target="_top">No&nbsp;Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_bottom">
+<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
+<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
+<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method.summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail:&nbsp;</li>
+<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
+<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
+<li><a href="#method.detail">Method</a></li>
+</ul>
+</div>
+<a name="skip.navbar.bottom">
+<!-- -->
+</a></div>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
+</body>
+</html>