public interface

RetryPolicy

com.netflix.astyanax.retry.RetryPolicy
Known Indirect Subclasses

Class Overview

Interface for any retry logic

Summary

Public Methods
abstract boolean allowRetry()
Ask the policy if a retry is allowed.
abstract void begin()
Operation is starting
abstract RetryPolicy duplicate()
Duplicate this policy into a fresh instance
abstract void failure(Exception e)
Operation has failed
abstract int getAttemptCount()
Return the number of attempts since begin was called
abstract void success()
Operation has completed successfully

Public Methods

public abstract boolean allowRetry ()

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

public abstract void begin ()

Operation is starting

public abstract RetryPolicy duplicate ()

Duplicate this policy into a fresh instance

public abstract void failure (Exception e)

Operation has failed

public abstract int getAttemptCount ()

Return the number of attempts since begin was called

public abstract void success ()

Operation has completed successfully