r/programming • • Jul 27 '16

Failsafe - A lightweight, zero-dependency library for handling failures in Java

https://github.com/jhalterman/failsafe
46 Upvotes

9 comments sorted by

2

u/kt24601 Jul 28 '16

I like the "zero dependency" idea

3

u/lukaseder Jul 28 '16

Not enough libraries do this, unfortunately.

1

u/josefx Jul 28 '16

Needs more log4j.

4

u/tytdfn Jul 27 '16

I love this interface! I wonder if it's original or if it was ported from somewhere else

2

u/jodah1 Jul 27 '16

It's original. There are libraries that do similar things in other languages/platforms, but the API is specific to the JVM/Java.

4

u/sunng Jul 28 '16

I made a Clojure wrapper for failsafe: https://github.com/sunng87/diehard

2

u/jfurmankiewicz Jul 27 '16

Looks very cool and useful.

2

u/pakoito Jul 27 '16 edited Jul 27 '16

I need a Java 7/Kotlin port BAD.

EDIT: It seems to work on Java 6 off the bat. Great!