static class Elections.RetryPredicate extends java.lang.Object implements Proposer.RetryPredicate
| Constructor and Description |
|---|
RetryPredicate(RepNode repNode,
int maxRetries,
java.util.concurrent.CountDownLatch electionLatch) |
| Modifier and Type | Method and Description |
|---|---|
int |
retries()
The number of times a retry was attempted
|
boolean |
retry()
Implements the protocol
|
RetryPredicate(RepNode repNode, int maxRetries, java.util.concurrent.CountDownLatch electionLatch)
public boolean retry()
throws java.lang.InterruptedException
retry in interface Proposer.RetryPredicatejava.lang.InterruptedExceptionpublic int retries()
retries in interface Proposer.RetryPredicateCopyright (c) 2004-2012 Oracle. All rights reserved.