Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.18 KB

README.md

File metadata and controls

33 lines (18 loc) · 1.18 KB

Build Status

Throwing-supplier

Guava cache supplier extension to memoize exceptions, fallback, expiration control.

ThrowingSupplier

Use ThrowingSupplier to memoize exceptions with Guava lazy-load / cache supplier, when failing after N attempts.

Exception thrown from your supplier will be raised when accessing memoized data.

LastValueFallbackSupplier

Use LastValueFallbackSupplier for to memoize last non-throwing value when exception are raised by your supplier.

Exception thrown from your supplier will be catched when accessing memoized data, and last non-throwing value will be returned. If there is no such value, Exception will be raised.

ExpiringMemoizingSupplierUtil

Force ExpiringMemoizingSupplier expiration.

Install

Install with Maven or Gradle from JitPack

Usage

See JavaExample.java

Requirements

Java >= 6