static class Elections.ElectionListener extends java.lang.Object implements Learner.Listener
| Constructor and Description |
|---|
Elections.ElectionListener() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CountDownLatch |
getElectionLatch()
Used during shutdown only
|
void |
notify(Proposer.Proposal proposal,
Protocol.Value value)
The Listener protocol announcing election results.
|
java.util.concurrent.CountDownLatch |
setLatch()
Returns a new latch to be associated with the RetryPredicate.
|
public java.util.concurrent.CountDownLatch setLatch()
public java.util.concurrent.CountDownLatch getElectionLatch()
public void notify(Proposer.Proposal proposal, Protocol.Value value)
notify in interface Learner.ListenerCopyright (c) 2004-2012 Oracle. All rights reserved.