51Degrees Pipeline Java  4.1

51Degrees Pipeline for Java

fiftyone.pipeline.engines.configuration.CacheConfiguration Class Reference

Detailed Description

Contains everything needed to build a cache.

Currently, a CacheBuilder and an integer size parameter.

Public Member Functions

 CacheConfiguration (CacheBuilder builder, int size)
Construct a new builder with the builder and size specified. More...
 CacheConfiguration (int size)
Construct a new builder using the LruPutCache with the size specified. More...
 CacheConfiguration ()
Default constructor uses the LruPutCache with a size of 1000.
CacheBuilder  getCacheBuilder ()
Get the builder to use when building a cache. More...
int  getSize ()
Get the maximum size parameter to use when building a cache. More...

Constructor & Destructor Documentation

◆ CacheConfiguration() [1/2]

fiftyone.pipeline.engines.configuration.CacheConfiguration.CacheConfiguration ( CacheBuilder   builder,
int   size  
)

Construct a new builder with the builder and size specified.

Parameters
builder - the builder to use to create caches
size - the maximum size of the cache

◆ CacheConfiguration() [2/2]

fiftyone.pipeline.engines.configuration.CacheConfiguration.CacheConfiguration ( int   size )

Construct a new builder using the LruPutCache with the size specified.

Parameters
size - maximum size of the cache

Member Function Documentation

◆ getCacheBuilder()

CacheBuilder fiftyone.pipeline.engines.configuration.CacheConfiguration.getCacheBuilder ( )

Get the builder to use when building a cache.

Returns
cache builder

◆ getSize()

int fiftyone.pipeline.engines.configuration.CacheConfiguration.getSize ( )

Get the maximum size parameter to use when building a cache.

Returns
cache size