Class JCacheConfig.Builder

    • Method Detail

      • copyAlwaysIfRequested

        public JCacheConfig.Builder copyAlwaysIfRequested​(boolean f)
        When true, copy keys and values when entering and leaving the cache in case Configuration.isStoreByValue() is true. This needs to be enabled for 100% JCache compatibility. Default, if no cache2k configuration is present: true. Default in cache2k configuration mode: false.
      • supportOnlineListenerAttachment

        public JCacheConfig.Builder supportOnlineListenerAttachment​(boolean f)
        Set to true, if online register and deregister of event listeners needs to be supported. Default, if no cache2k configuration is present: true. Default in cache2k configuration mode: false.
        See Also:
        Cache.registerCacheEntryListener(CacheEntryListenerConfiguration)
      • enableManagement

        public JCacheConfig.Builder enableManagement​(boolean f)
        When true makes the JMX management bean for the cache available. Identical to the flag in the JCache configuration object.
        See Also:
        CompleteConfiguration.isManagementEnabled()
      • enableStatistics

        public JCacheConfig.Builder enableStatistics​(boolean f)
        When true, exposes cache statistics via JMX. Identical to the flag in the JCache configuration object.
        See Also:
        CompleteConfiguration.isManagementEnabled()
      • enableReadThrough

        public JCacheConfig.Builder enableReadThrough​(boolean f)
        When true, operate cache in read through mode and use the configured loader when there is no mapping for a key yet. Identical to the flag in the JCache configuration object.
        See Also:
        CompleteConfiguration.isReadThrough()