K - the cache key typeV - the cache value typepublic class DistributableCacheFactoryService<K,V extends Identifiable<K> & Contextual<Batch>> extends Object implements Builder<CacheFactory<K,V>>, org.jboss.msc.value.Value<CacheFactory<K,V>>, CacheFactory<K,V>
CacheFactory.| Constructor and Description |
|---|
DistributableCacheFactoryService(org.jboss.msc.service.ServiceName name,
Builder<? extends BeanManagerFactory<K,V,Batch>> builder) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.msc.service.ServiceBuilder<CacheFactory<K,V>> |
build(org.jboss.msc.service.ServiceTarget target)
Builds a service into the specified target.
|
Cache<K,V> |
createCache(IdentifierFactory<K> identifierFactory,
StatefulObjectFactory<V> factory,
PassivationListener<V> passivationListener) |
org.jboss.msc.service.ServiceName |
getServiceName()
Returns the associated service name
|
CacheFactory<K,V> |
getValue() |
public DistributableCacheFactoryService(org.jboss.msc.service.ServiceName name,
Builder<? extends BeanManagerFactory<K,V,Batch>> builder)
public org.jboss.msc.service.ServiceName getServiceName()
ServiceNameProvidergetServiceName in interface ServiceNameProviderpublic org.jboss.msc.service.ServiceBuilder<CacheFactory<K,V>> build(org.jboss.msc.service.ServiceTarget target)
Builderbuild in interface Builder<CacheFactory<K,V extends Identifiable<K> & Contextual<Batch>>>target - the service installation targetpublic CacheFactory<K,V> getValue()
getValue in interface org.jboss.msc.value.Value<CacheFactory<K,V extends Identifiable<K> & Contextual<Batch>>>public Cache<K,V> createCache(IdentifierFactory<K> identifierFactory, StatefulObjectFactory<V> factory, PassivationListener<V> passivationListener)
createCache in interface CacheFactory<K,V extends Identifiable<K> & Contextual<Batch>>Copyright © 2022 JBoss by Red Hat. All rights reserved.