Constant, linear, exponential and fibonacci backoff functions for Scala 2.11
TODO
Please refer to documentation for more details.
To use backoff
in an SBT project, add the following dependency to your build.sbt
:
libraryDependencies += "pt.tecnico.dsi" %% "backoff" % "1.0.3"
Or in maven, you can add backoff
to your pom.xml
:
<dependency>
<groupId>pt.tecnico.dsi</groupId>
<artifactId>backoff_2.11</artifactId>
<version>1.0.3</version>
</dependency>
backoff
uses SBT for building and requires Java 8.
$ git clone https://github.com/ist-dsi/backoff.git
$ cd backoff
$ sbt update
$ sbt compile
Then you can run the tests simply by:
sbt test
Backoff is open source and available under the MIT license.