public class

RunOnce

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

Summary

Fields
public static RunOnce instance
Public Constructors
RunOnce()
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
static RunOnce get()
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

Fields

public static RunOnce instance

Public Constructors

public RunOnce ()

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 static RunOnce get ()

public int getAttemptCount ()

Return the number of attempts since begin was called

public void success ()

Operation has completed successfully

public String toString ()