public class CommitFreezeLatch
extends java.lang.Object
Constructor and Description |
---|
CommitFreezeLatch() |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitThaw()
Used to wait for an event that unfreezes the VLSN.
|
void |
clearLatch()
Clears the latch freeing any waiters.
|
void |
freeze(Proposer.Proposal freezeProposal)
Initiates or extends a freeze on a VLSN in response to a new election
that is in progress.
|
int |
getAwaitElectionCount() |
int |
getAwaitTimeoutCount() |
int |
getFreezeCount() |
long |
getTimeOut() |
void |
setTimeOut(long timeOut) |
void |
vlsnEvent(Proposer.Proposal listenerProposal)
Invoked by the Learner thread whenever it receives an election result.
|
public int getAwaitTimeoutCount()
public int getAwaitElectionCount()
public int getFreezeCount()
public long getTimeOut()
public void setTimeOut(long timeOut)
public void freeze(Proposer.Proposal freezeProposal)
freezeProposal
- identifies the election that is provoking the freezepublic void vlsnEvent(Proposer.Proposal listenerProposal)
listenerProposal
- identifies the election that just concludedpublic void clearLatch()
public boolean awaitThaw() throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright (c) 2004-2012 Oracle. All rights reserved.