Class CacheServiceConfigurator<K,​V>

  • Type Parameters:
    K - the cache key type
    V - the cache value type
    All Implemented Interfaces:
    Consumer<org.infinispan.Cache<K,​V>>, Supplier<org.infinispan.Cache<K,​V>>, CapabilityServiceConfigurator, org.wildfly.clustering.service.ServiceConfigurator, org.wildfly.clustering.service.ServiceNameProvider

    public class CacheServiceConfigurator<K,​V>
    extends org.wildfly.clustering.service.SimpleServiceNameProvider
    implements CapabilityServiceConfigurator, Supplier<org.infinispan.Cache<K,​V>>, Consumer<org.infinispan.Cache<K,​V>>
    Service that provides a cache and handles its lifecycle
    Author:
    Paul Ferraro
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(org.infinispan.Cache<K,​V> cache)  
      org.jboss.msc.service.ServiceBuilder<?> build​(org.jboss.msc.service.ServiceTarget target)  
      org.wildfly.clustering.service.ServiceConfigurator configure​(org.jboss.as.controller.capability.CapabilityServiceSupport support)  
      org.infinispan.Cache<K,​V> get()  
      CacheServiceConfigurator<K,​V> require​(org.wildfly.clustering.service.Dependency dependency)  
      • Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider

        equals, getServiceName, hashCode, toString
      • Methods inherited from interface org.wildfly.clustering.service.ServiceNameProvider

        getServiceName
    • Constructor Detail

      • CacheServiceConfigurator

        public CacheServiceConfigurator​(org.jboss.msc.service.ServiceName name,
                                        String containerName,
                                        String cacheName)
    • Method Detail

      • get

        public org.infinispan.Cache<K,​V> get()
        Specified by:
        get in interface Supplier<K>
      • accept

        public void accept​(org.infinispan.Cache<K,​V> cache)
        Specified by:
        accept in interface Consumer<K>
      • configure

        public org.wildfly.clustering.service.ServiceConfigurator configure​(org.jboss.as.controller.capability.CapabilityServiceSupport support)
        Specified by:
        configure in interface CapabilityServiceConfigurator
      • build

        public final org.jboss.msc.service.ServiceBuilder<?> build​(org.jboss.msc.service.ServiceTarget target)
        Specified by:
        build in interface org.wildfly.clustering.service.ServiceConfigurator