Class CacheConfigurationEnricher


  • public class CacheConfigurationEnricher
    extends Object
    The responsibility of this class is to enrich cache configuration with stored enrichment, in other words it allows to deserialize fields of CacheConfiguration that are marked with SerializeSeparately.
    • Constructor Detail

    • Method Detail

      • enrich

        public DynamicCacheDescriptor enrich​(DynamicCacheDescriptor desc,
                                             boolean affinityNode)
        Enriches descriptor cache configuration with stored enrichment.
        Parameters:
        desc - Cache desriptor.
        affinityNode - true if enrichment is happened on affinity node.
      • enrich

        public CacheGroupDescriptor enrich​(CacheGroupDescriptor desc,
                                           boolean affinityNode)
        Enriches descriptor cache configuration with stored enrichment.
        Parameters:
        desc - Cache group descriptor to be enriched.
        affinityNode - true if enrichment is happened on affinity node.
      • enrich

        public CacheConfiguration<?,​?> enrich​(CacheConfiguration<?,​?> ccfg,
                                                    @Nullable
                                                    @Nullable CacheConfigurationEnrichment enrichment,
                                                    boolean affinityNode)
        Enriches cache configuration fields with deserialized values from given enrichment.
        Parameters:
        ccfg - Cache configuration to enrich.
        enrichment - Cache configuration enrichment.
        affinityNode - true if enrichment is happened on affinity node.
        Returns:
        Enriched cache configuration.