Class CacheServiceConfigurator<K,V>
- java.lang.Object
-
- org.wildfly.clustering.service.SimpleServiceNameProvider
-
- org.wildfly.clustering.infinispan.service.CacheServiceConfigurator<K,V>
-
- Type Parameters:
K- the cache key typeV- 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
-
-
Constructor Summary
Constructors Constructor Description CacheServiceConfigurator(org.jboss.msc.service.ServiceName name, String containerName, String cacheName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(org.infinispan.Cache<K,V> cache)org.jboss.msc.service.ServiceBuilder<?>build(org.jboss.msc.service.ServiceTarget target)org.wildfly.clustering.service.ServiceConfiguratorconfigure(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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.clustering.controller.CapabilityServiceConfigurator
configure
-
-
-
-
Method Detail
-
require
public CacheServiceConfigurator<K,V> require(org.wildfly.clustering.service.Dependency dependency)
-
configure
public org.wildfly.clustering.service.ServiceConfigurator configure(org.jboss.as.controller.capability.CapabilityServiceSupport support)
- Specified by:
configurein interfaceCapabilityServiceConfigurator
-
build
public final org.jboss.msc.service.ServiceBuilder<?> build(org.jboss.msc.service.ServiceTarget target)
- Specified by:
buildin interfaceorg.wildfly.clustering.service.ServiceConfigurator
-
-