com.sleepycat.je.rep.elections
Class Elections.RetryPredicate
java.lang.Object
com.sleepycat.je.rep.elections.Elections.RetryPredicate
- All Implemented Interfaces:
- Proposer.RetryPredicate
- Enclosing class:
- Elections
static class Elections.RetryPredicate
- extends Object
- implements Proposer.RetryPredicate
Implements the retry policy
Method Summary |
int |
retries()
The number of times a retry was attempted |
boolean |
retry()
Implements the protocol |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Elections.RetryPredicate
Elections.RetryPredicate(RepNode repNode,
int maxRetries,
CountDownLatch electionLatch)
retry
public boolean retry()
throws InterruptedException
- Implements the protocol
- Specified by:
retry
in interface Proposer.RetryPredicate
- Throws:
InterruptedException
retries
public int retries()
- The number of times a retry was attempted
- Specified by:
retries
in interface Proposer.RetryPredicate
Copyright (c) 2004-2012 Oracle. All rights reserved.