G - the group identifier typeI - the bean identifier typeT - the bean typepublic class InfinispanBeanManager<G,I,T> extends Object implements BeanManager<G,I,T,TransactionBatch>
BeanManager implementation backed by an infinispan cache.| Constructor and Description |
|---|
InfinispanBeanManager(InfinispanBeanManagerConfiguration<T> configuration,
Configuration<I,BeanKey<I>,BeanEntry<G>,BeanFactory<G,I,T>> beanConfiguration,
Configuration<G,G,BeanGroupEntry<I,T>,BeanGroupFactory<G,I,T>> groupConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<BeanKey<I>,BeanEntry<G>> event) |
boolean |
containsBean(I id) |
Bean<G,I,T> |
createBean(I id,
G groupId,
T bean) |
void |
dataRehashed(org.infinispan.notifications.cachelistener.event.DataRehashedEvent<BeanKey<I>,BeanEntry<G>> event) |
Bean<G,I,T> |
findBean(I id) |
int |
getActiveCount() |
org.wildfly.clustering.ee.Batcher<TransactionBatch> |
getBatcher() |
IdentifierFactory<I> |
getBeanIdentifierFactory() |
IdentifierFactory<G> |
getGroupIdentifierFactory() |
int |
getPassiveCount() |
org.jboss.ejb.client.Affinity |
getStrictAffinity() |
org.jboss.ejb.client.Affinity |
getWeakAffinity(I id) |
void |
passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<BeanKey<I>,BeanEntry<G>> event) |
void |
start() |
void |
stop() |
public InfinispanBeanManager(InfinispanBeanManagerConfiguration<T> configuration, Configuration<I,BeanKey<I>,BeanEntry<G>,BeanFactory<G,I,T>> beanConfiguration, Configuration<G,G,BeanGroupEntry<I,T>,BeanGroupFactory<G,I,T>> groupConfiguration)
public void start()
start in interface BeanManager<G,I,T,TransactionBatch>public void stop()
stop in interface BeanManager<G,I,T,TransactionBatch>public org.jboss.ejb.client.Affinity getStrictAffinity()
getStrictAffinity in interface AffinitySupport<I>public org.jboss.ejb.client.Affinity getWeakAffinity(I id)
getWeakAffinity in interface AffinitySupport<I>public Bean<G,I,T> createBean(I id, G groupId, T bean)
createBean in interface BeanManager<G,I,T,TransactionBatch>public Bean<G,I,T> findBean(I id)
findBean in interface BeanManager<G,I,T,TransactionBatch>public boolean containsBean(I id)
containsBean in interface BeanManager<G,I,T,TransactionBatch>public IdentifierFactory<G> getGroupIdentifierFactory()
getGroupIdentifierFactory in interface BeanManager<G,I,T,TransactionBatch>public IdentifierFactory<I> getBeanIdentifierFactory()
getBeanIdentifierFactory in interface BeanManager<G,I,T,TransactionBatch>public org.wildfly.clustering.ee.Batcher<TransactionBatch> getBatcher()
getBatcher in interface BeanManager<G,I,T,TransactionBatch>public int getActiveCount()
getActiveCount in interface BeanManagerStatisticspublic int getPassiveCount()
getPassiveCount in interface BeanManagerStatisticspublic void passivated(org.infinispan.notifications.cachelistener.event.CacheEntryPassivatedEvent<BeanKey<I>,BeanEntry<G>> event)
public void activated(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<BeanKey<I>,BeanEntry<G>> event)
Copyright © 2015 JBoss by Red Hat. All rights reserved.