I - the bean identifier typeT - the bean typepublic class InfinispanBeanGroupFactory<I,T,C> extends Object implements BeanGroupFactory<I,T,C>
| Constructor and Description |
|---|
InfinispanBeanGroupFactory(org.infinispan.Cache<BeanGroupKey<I>,BeanGroupEntry<I,T,C>> cache,
org.infinispan.Cache<BeanKey<I>,BeanEntry<I>> beanCache,
Predicate<Map.Entry<? super BeanKey<I>,? super BeanEntry<I>>> beanFilter,
org.wildfly.clustering.marshalling.spi.MarshalledValueFactory<C> factory,
org.wildfly.clustering.ee.cache.CacheProperties properties,
PassivationConfiguration<T> passivation) |
| Modifier and Type | Method and Description |
|---|---|
void |
activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<BeanGroupKey<I>,BeanGroupEntry<I,T,C>> event) |
void |
close() |
BeanGroup<I,T> |
createGroup(I id,
BeanGroupEntry<I,T,C> entry)
Create a new bean group using the specified identifier and entry.
|
BeanGroupKey<I> |
createKey(I id) |
BeanGroupEntry<I,T,C> |
createValue(I id,
Void context) |
void |
evict(I id)
Evicts the bean group identified by the specified identifier.
|
BeanGroupEntry<I,T,C> |
findValue(I id) |
int |
getPassiveCount() |
void |
passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<BeanGroupKey<I>,BeanGroupEntry<I,T,C>> event) |
boolean |
remove(I id) |
BeanGroupEntry<I,T,C> |
tryValue(I id) |
public InfinispanBeanGroupFactory(org.infinispan.Cache<BeanGroupKey<I>,BeanGroupEntry<I,T,C>> cache, org.infinispan.Cache<BeanKey<I>,BeanEntry<I>> beanCache, Predicate<Map.Entry<? super BeanKey<I>,? super BeanEntry<I>>> beanFilter, org.wildfly.clustering.marshalling.spi.MarshalledValueFactory<C> factory, org.wildfly.clustering.ee.cache.CacheProperties properties, PassivationConfiguration<T> passivation)
public void close()
close in interface BeanGroupFactory<I,T,C>public int getPassiveCount()
getPassiveCount in interface BeanGroupFactory<I,T,C>public BeanGroupKey<I> createKey(I id)
createKey in interface BeanGroupFactory<I,T,C>public BeanGroupEntry<I,T,C> findValue(I id)
findValue in interface org.wildfly.clustering.ee.Locator<I,BeanGroupEntry<I,T,C>>public BeanGroupEntry<I,T,C> tryValue(I id)
tryValue in interface org.wildfly.clustering.ee.Locator<I,BeanGroupEntry<I,T,C>>public boolean remove(I id)
remove in interface org.wildfly.clustering.ee.Remover<I>public BeanGroup<I,T> createGroup(I id, BeanGroupEntry<I,T,C> entry)
BeanGroupFactorycreateGroup in interface BeanGroupFactory<I,T,C>id - a group identifierentry - the cache entry for the grouppublic void evict(I id)
BeanGroupEvictorevict in interface BeanGroupEvictor<I>id - a bean group identifier.public void passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<BeanGroupKey<I>,BeanGroupEntry<I,T,C>> event)
public void activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<BeanGroupKey<I>,BeanGroupEntry<I,T,C>> event)
Copyright © 2020 JBoss by Red Hat. All rights reserved.