All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.cql.retrypolicies.JavaDriverBasedRetryPolicy Maven / Gradle / Ivy

package com.netflix.astyanax.cql.retrypolicies;

import com.netflix.astyanax.retry.RetryPolicy;

/**
 * Abstract base for all {@link RetryPolicy} implementation that want to use the retry policy from java driver.
 * @author poberai
 *
 */
public abstract class JavaDriverBasedRetryPolicy implements RetryPolicy {

	@Override
	public void begin() {
	}

	@Override
	public void success() {
	}

	@Override
	public void failure(Exception e) {
	}

	@Override
	public boolean allowRetry() {
		return false;
	}

	@Override
	public int getAttemptCount() {
		return 0;
	}

	@Override
	public RetryPolicy duplicate() {
		return null;
	}
	
	public abstract com.datastax.driver.core.policies.RetryPolicy getJDRetryPolicy();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy