Skip to content

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

Notifications You must be signed in to change notification settings

zeroleak/throwing-supplier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages