51Degrees Pipeline for Java

fiftyone.caching.CacheBuilder Interface Reference

Detailed Description

Builder interface used to build caches.

The builder is type agnostic, and will build a cache with the types provided.

Inheritance diagram for fiftyone.caching.CacheBuilder:

[legend]

Public Member Functions

< K, V > Cache< K, V > build (Cache< K, V > c, int cacheSize)
 Build a new instance of the cache.

Member Function Documentation

◆ build()

< K, V > Cache< K, V > fiftyone.caching.CacheBuilder.build ( Cache< K, V > c,
int cacheSize )

Build a new instance of the cache.

Parameters
ca cache to get the key and value types from
cacheSizesize of the cache
<K>type of key to store in the cache
<V>type of value to store in the cache
Returns
a new cache instance

Implemented in fiftyone.caching.PutCacheBuilder.