Top Description Constructors Methods
waffle.util.cache

public Class CaffeineCacheSupplier

extends Object
implements CacheSupplier
Class Inheritance
All Implemented Interfaces
waffle.util.cache.CacheSupplier

A CacheSupplier supplying CaffeineCache.
Author
Simon Legner

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <K, V> Cache<K, V>
newCache(final long
timeout in seconds
timeout
)

Implements waffle.util.cache.CacheSupplier.newCache.

Creates a new cache with the specified timeout
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CaffeineCacheSupplierback to summary
public CaffeineCacheSupplier()

Method Detail

newCacheback to summary
public <K, V> Cache<K, V> newCache(final long timeout)

Implements waffle.util.cache.CacheSupplier.newCache.

Doc from waffle.util.cache.CacheSupplier.newCache.

Creates a new cache with the specified timeout

Parameters
<K>
the type of keys maintained by this cache
<V>
the type of mapped values
timeout:long

timeout in seconds

Returns:Cache<K, V>

a new cache

Annotations
@Override