org.dasein.util
Class Retry<T>

java.lang.Object
  extended by org.dasein.util.Retry<T>

public class Retry<T>
extends Object


Nested Class Summary
static class Retry.RetryException
           
 
Constructor Summary
Retry()
           
 
Method Summary
 T retry(int retries, Callable<T> operation)
           
 T retry(int retries, int baseDelayInSeconds, Callable<T> operation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Retry

public Retry()
Method Detail

retry

public T retry(int retries,
               Callable<T> operation)
        throws Exception
Throws:
Exception

retry

public T retry(int retries,
               int baseDelayInSeconds,
               Callable<T> operation)
        throws Exception
Throws:
Exception


Copyright © 2012 enStratus Networks Inc. All Rights Reserved.