https://github.com/wsargent/scala-failsafe
Scala Wrapper for https://github.com/jhalterman/failsafe
https://github.com/wsargent/scala-failsafe
Last synced: 5 months ago
JSON representation
Scala Wrapper for https://github.com/jhalterman/failsafe
- Host: GitHub
- URL: https://github.com/wsargent/scala-failsafe
- Owner: wsargent
- Created: 2016-08-23T20:46:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-27T21:29:48.000Z (about 9 years ago)
- Last Synced: 2025-03-19T17:03:55.471Z (7 months ago)
- Language: Scala
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scala-failsafe
Scala Wrapper for https://github.com/jhalterman/failsafe
This is a very thin Scala wrapper around [Failsafe](https://github.com/jhalterman/failsafe).
It is not yet published on Github and / or Maven. You will have to build it from source.
There's two classes:
https://github.com/wsargent/scala-failsafe/blob/master/src/main/scala/com/lightbend/scalafailsafe/Failsafe.scala
and
https://github.com/wsargent/scala-failsafe/blob/master/src/main/scala/com/lightbend/scalafailsafe/CircuitBreaker.scala
To use it, import
```
import com.lightbend.scalafailsafe._
```and then extend the `CircuitBreaker` or `LowPriorityFailsafeImplicits` or `FailsafeBuilder` traits as necessary.