public class

RetryNTimes

extends Object
implements RetryPolicy
java.lang.Object
   ↳ com.netflix.astyanax.retry.RetryNTimes

Summary

Public Constructors
RetryNTimes(int max)
Public Methods
boolean allowRetry()
Ask the policy if a retry is allowed.
void begin()
Operation is starting
RetryPolicy duplicate()
Duplicate this policy into a fresh instance
void failure(Exception e)
Operation has failed
int getAttemptCount()
Return the number of attempts since begin was called
void success()
Operation has completed successfully
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.retry.RetryPolicy

Public Constructors

public RetryNTimes (int max)

Public Methods

public boolean allowRetry ()

Ask the policy if a retry is allowed. This may internally sleep

public void begin ()

Operation is starting

public RetryPolicy duplicate ()

Duplicate this policy into a fresh instance

public void failure (Exception e)

Operation has failed

public int getAttemptCount ()

Return the number of attempts since begin was called

public void success ()

Operation has completed successfully

public String toString ()