com.sleepycat.je.rep.elections
Class Elections.RetryPredicate

java.lang.Object
  extended by 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


Constructor Summary
Elections.RetryPredicate(RepNode repNode, int maxRetries, CountDownLatch electionLatch)
           
 
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
 

Constructor Detail

Elections.RetryPredicate

Elections.RetryPredicate(RepNode repNode,
                         int maxRetries,
                         CountDownLatch electionLatch)
Method Detail

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.