Package org.cache2k.core.api
Class InternalConfig.Builder
- java.lang.Object
-
- org.cache2k.core.api.InternalConfig.Builder
-
- All Implemented Interfaces:
org.cache2k.config.ConfigBuilder<InternalConfig.Builder,InternalConfig>,org.cache2k.config.SectionBuilder<InternalConfig.Builder,InternalConfig>
- Enclosing class:
- InternalConfig
public static class InternalConfig.Builder extends Object implements org.cache2k.config.SectionBuilder<InternalConfig.Builder,InternalConfig>
-
-
Constructor Summary
Constructors Constructor Description Builder(InternalConfig cfg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternalConfig.BuildercommonMetrics(CommonMetrics.Updater v)InternalConfigconfig()InternalConfig.BuilderevictionSegmentCount(int v)Segmentation count for eviction to use instead of the automatic one derived from the system CPU count.InternalConfig.BuilderthreadFactoryProvider(ThreadFactoryProvider v)
-
-
-
Constructor Detail
-
Builder
public Builder(InternalConfig cfg)
-
-
Method Detail
-
evictionSegmentCount
public InternalConfig.Builder evictionSegmentCount(int v)
Segmentation count for eviction to use instead of the automatic one derived from the system CPU count. Has to be power of two, e.g. 2, 4, 8, etc. Invalid numbers will be replaced by the next higher power of two. Default is 0, no override.
-
threadFactoryProvider
public InternalConfig.Builder threadFactoryProvider(ThreadFactoryProvider v)
-
commonMetrics
public InternalConfig.Builder commonMetrics(CommonMetrics.Updater v)
-
config
public InternalConfig config()
- Specified by:
configin interfaceorg.cache2k.config.ConfigBuilder<InternalConfig.Builder,InternalConfig>
-
-