guava-retrying

null

License

License

Categories

Categories

Guava General Purpose Libraries Utility
GroupId

GroupId

com.arakelian
ArtifactId

ArtifactId

guava-retrying
Last Version

Last Version

unspecified
Release Date

Release Date

Type

Type

jar
Description

Description

guava-retrying
null
Project URL

Project URL

https://github.com/arakelian/guava-retrying
Source Code Management

Source Code Management

https://github.com/arakelian/guava-retrying.git

Download guava-retrying

How to add to project

<!-- https://jarcasting.com/artifacts/com.arakelian/guava-retrying/ -->
<dependency>
    <groupId>com.arakelian</groupId>
    <artifactId>guava-retrying</artifactId>
    <version>unspecified</version>
</dependency>
// https://jarcasting.com/artifacts/com.arakelian/guava-retrying/
implementation 'com.arakelian:guava-retrying:unspecified'
// https://jarcasting.com/artifacts/com.arakelian/guava-retrying/
implementation ("com.arakelian:guava-retrying:unspecified")
'com.arakelian:guava-retrying:jar:unspecified'
<dependency org="com.arakelian" name="guava-retrying" rev="unspecified">
  <artifact name="guava-retrying" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.arakelian', module='guava-retrying', version='unspecified')
)
libraryDependencies += "com.arakelian" % "guava-retrying" % "unspecified"
[com.arakelian/guava-retrying "unspecified"]

Dependencies

compile (2)

Group / Artifact Type Version
org.immutables : value-annotations jar 2.7.5
org.slf4j : slf4j-api jar 1.7.25

test (10)

Group / Artifact Type Version
junit : junit jar 4.12
org.apache.logging.log4j : log4j-api jar 2.9.1
org.apache.logging.log4j : log4j-core jar 2.9.1
org.apache.logging.log4j : log4j-slf4j-impl jar 2.9.1
org.slf4j : jcl-over-slf4j jar 1.7.25
org.slf4j : jul-to-slf4j jar 1.7.25
org.junit.jupiter : junit-jupiter-api jar 5.4.1
org.junit.jupiter : junit-jupiter-params jar 5.4.1
org.junit.jupiter : junit-jupiter-engine jar 5.4.1
org.junit.vintage : junit-vintage-engine jar 5.4.1

Project Modules

There are no modules declared in this project.

Build Status Latest Version License

What is this?

The retry module provides a general purpose method for retrying arbitrary Java code with specific stop, retry, and exception handling capabilities that are enhanced by Guava's predicate matching.

This is a fork of the guava-retrying library by Ryan Holder (rholder), which is itself a fork of the RetryerBuilder by Jean-Baptiste Nizet (JB). The retry project added a Gradle build for pushing it up to Maven Central, and exponential and Fibonacci backoff WaitStrategies that might be useful for situations where more well-behaved service polling is preferred.

Reasons for Fork

  • Add Java 11 support
  • Use java.util.Predicate and java.util.Function instead of Guava equivalents
  • Make compatible with latest versions of Guava (27+)
  • Fix all errorprone warnings in original source code

Installation

The library is available on Maven Central.

Maven

Add the following to your pom.xml:

<repositories>
    <repository>
        <id>central</id>
        <name>Central Repository</name>
        <url>http://repo.maven.apache.org/maven2</url>
        <releases>
            <enabled>true</enabled>
        </releases>
    </repository>
</repositories>

...

<dependency>
    <groupId>com.arakelian</groupId>
    <artifactId>retry</artifactId>
    <version>3.9.0</version>
    <scope>test</scope>
</dependency>

Gradle

Add the following to your build.gradle:

repositories {
  mavenCentral()
}

dependencies {
  testCompile 'com.arakelian:retry:3.9.0'
}

Licence

Apache Version 2.0

Documentation

Javadoc can be found here.

License

The retry module is released under version 2.0 of the Apache License.

Contributors

  • Jean-Baptiste Nizet (JB)
  • Jason Dunkelberger (dirkraft)
  • Diwaker Gupta (diwakergupta)
  • Jochen Schalanda (joschi)
  • Shajahan Palayil (shasts)
  • Olivier Grégoire (fror)
  • Andrei Savu (andreisavu)
  • (tchdp)
  • (squalloser)
  • Yaroslav Matveychuk (yaroslavm)
  • Stephan Schroevers (Stephan202)
  • Chad (voiceinsideyou)
  • Kevin Conaway (kevinconaway)
  • Alberto Scotto (alb-i986)
  • Ryan Holder(rholder)

Versions

Version
unspecified