A B C D E F G H I O R S T 

A

action(Callable<V>) - Method in class com.github.rbuck.retry.RetryPolicy
Perform the specified action under the defined retry semantics.
action(SqlCallable<V>) - Method in class com.github.rbuck.retry.SqlRetryPolicy
 
addDelay(long) - Static method in class com.github.rbuck.retry.RetryState.RetryStateCommon
Delays the current thread the specified number of milliseconds.
addRetryEventListener(RetryEventListener) - Method in class com.github.rbuck.retry.RetryPolicy
 

B

BasicSqlTransactionContext - Class in com.github.rbuck.retry
A basic transaction context wrapping a java.sql.DataSource.
BasicSqlTransactionContext(DataSource) - Constructor for class com.github.rbuck.retry.BasicSqlTransactionContext
Constructs a transaction context bean wrapping a SQL data source.

C

call(Connection) - Method in interface com.github.rbuck.retry.SqlCallable
Implementation for the action to perform.
com.github.rbuck.retry - package com.github.rbuck.retry
This package contains the core retry framework classes; this page provides descriptions for the core classes, the key concepts, etc.
com.github.rbuck.retry.hibernate - package com.github.rbuck.retry.hibernate
This package provides a class used to distinguish transient versus non-transient Hibernate exceptions.

D

DEFAULT_MAX_BACKOFF - Static variable in class com.github.rbuck.retry.ExponentialBackoff
 
DEFAULT_MIN_BACKOFF - Static variable in class com.github.rbuck.retry.ExponentialBackoff
 
DEFAULT_RETRY_COUNT - Static variable in class com.github.rbuck.retry.ExponentialBackoff
 
DEFAULT_SLOT_TIME - Static variable in class com.github.rbuck.retry.ExponentialBackoff
 
delayRetry() - Method in interface com.github.rbuck.retry.RetryState
Delays retry according to the retry strategy.

E

ExponentialBackoff - Class in com.github.rbuck.retry
Implements truncated binary exponential backoff to calculate retry delay per IEEE 802.3-2008 Section 1.
ExponentialBackoff() - Constructor for class com.github.rbuck.retry.ExponentialBackoff
 
ExponentialBackoff(int, long, long, long) - Constructor for class com.github.rbuck.retry.ExponentialBackoff
 
ExponentialBackoff(int) - Constructor for class com.github.rbuck.retry.ExponentialBackoff
 

F

FixedInterval - Class in com.github.rbuck.retry
Represents a fixed interval RetryStrategy whose time interval is fixed.
FixedInterval(int, long) - Constructor for class com.github.rbuck.retry.FixedInterval
 

G

getCause() - Method in class com.github.rbuck.retry.RetryEvent
 
getConnection() - Method in class com.github.rbuck.retry.BasicSqlTransactionContext
 
getConnection() - Method in interface com.github.rbuck.retry.SqlTransactionContext
Get a SQL connection.
getRetryCount() - Method in class com.github.rbuck.retry.RetryEvent
 
getRetryCount() - Method in interface com.github.rbuck.retry.RetryState
Gets the current retry count.
getRetryDelay() - Method in class com.github.rbuck.retry.RetryEvent
 
getRetryDelay() - Method in interface com.github.rbuck.retry.RetryState
Get the retry interval to sleep for.
getRetryState() - Method in class com.github.rbuck.retry.ExponentialBackoff
 
getRetryState() - Method in class com.github.rbuck.retry.FixedInterval
 
getRetryState() - Method in class com.github.rbuck.retry.Incremental
 
getRetryState() - Method in interface com.github.rbuck.retry.RetryStrategy
Creates a prototype state every time a request is made.
getSource() - Method in class com.github.rbuck.retry.RetryEvent
 

H

hasRetries() - Method in interface com.github.rbuck.retry.RetryState
Implements the retry policy.
HibernateTransientExceptionDetector - Class in com.github.rbuck.retry.hibernate
Checks if the Hibernate exception is a transient SQL exception.
HibernateTransientExceptionDetector() - Constructor for class com.github.rbuck.retry.hibernate.HibernateTransientExceptionDetector
 

I

Incremental - Class in com.github.rbuck.retry
Implementation for an incremental retry strategy with fixed initial and incremental wait times.
Incremental(int, long, long) - Constructor for class com.github.rbuck.retry.Incremental
 
isSqlStateConnectionException(SQLException) - Static method in class com.github.rbuck.retry.SqlTransientExceptionDetector
Determines if the SQL exception is a connection exception
isSqlStateDuplicateValueInUniqueIndex(SQLException) - Static method in class com.github.rbuck.retry.SqlTransientExceptionDetector
Determines if the SQL exception a duplicate value in unique index.
isSqlStateRollbackException(SQLException) - Static method in class com.github.rbuck.retry.SqlTransientExceptionDetector
Determines if the SQL exception is a rollback exception
isTransient(Exception) - Method in class com.github.rbuck.retry.hibernate.HibernateTransientExceptionDetector
 
isTransient(Exception) - Method in class com.github.rbuck.retry.SqlTransientExceptionDetector
 
isTransient(Exception) - Method in interface com.github.rbuck.retry.TransientExceptionDetector
Determine if the condition is a transient error.

O

onRetry(RetryEvent) - Method in interface com.github.rbuck.retry.RetryEventListener
This method gets called when a retry occurs.

R

RetryEvent - Class in com.github.rbuck.retry
Represents current retry state.
RetryEvent(Object, RetryState, Exception) - Constructor for class com.github.rbuck.retry.RetryEvent
Constructs a prototypical Event.
RetryEventListener - Interface in com.github.rbuck.retry
Interface for receiving a retry event.
RetryPolicy<V> - Class in com.github.rbuck.retry
A generic retry policy.
RetryPolicy(RetryStrategy, TransientExceptionDetector) - Constructor for class com.github.rbuck.retry.RetryPolicy
Implements a retry policy using the specified strategy and transient error detection algorithm.
RetryState - Interface in com.github.rbuck.retry
Internal retry state.
RetryState.RetryStateCommon - Class in com.github.rbuck.retry
Basic utilities for retry strategies.
RetryState.RetryStateCommon() - Constructor for class com.github.rbuck.retry.RetryState.RetryStateCommon
 
RetryStrategy - Interface in com.github.rbuck.retry
Interface for a retry strategy.

S

SqlCallable<V> - Interface in com.github.rbuck.retry
A SAM type permitting the use of lambda expressions whose default action is to perform a SQL transaction using the given connection.
SqlRetryPolicy<V> - Class in com.github.rbuck.retry
A retry policy for SQL operations.
SqlRetryPolicy(RetryStrategy, SqlTransactionContext) - Constructor for class com.github.rbuck.retry.SqlRetryPolicy
Implements a retry policy using the specified strategy and transient error detection algorithm.
SqlRetryPolicy(RetryStrategy, TransientExceptionDetector, SqlTransactionContext) - Constructor for class com.github.rbuck.retry.SqlRetryPolicy
Implements a retry policy using the specified strategy and transient error detection algorithm.
SqlTransactionContext - Interface in com.github.rbuck.retry
The SQL transaction context for executed actions.
SqlTransientExceptionDetector - Class in com.github.rbuck.retry
Checks if the exception is a transient SQL exception.
SqlTransientExceptionDetector() - Constructor for class com.github.rbuck.retry.SqlTransientExceptionDetector
 
SqlTransientExceptionDetector(boolean) - Constructor for class com.github.rbuck.retry.SqlTransientExceptionDetector
 

T

TransientExceptionDetector - Interface in com.github.rbuck.retry
Defines an interface to detect for transient error conditions.
A B C D E F G H I O R S T 

Copyright © 2015. All rights reserved.