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