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.

See also
Specification

Public Member Functions

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

Static Public Attributes

static final int defaultSize = 1000

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
builderthe builder to use to create caches
sizethe 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
sizemaximum 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