Class InfinispanBeanManager<K,V extends BeanInstance<K>,M>
- java.lang.Object
-
- org.wildfly.clustering.ejb.infinispan.bean.InfinispanBeanManager<K,V,M>
-
- Type Parameters:
K- the bean identifier typeV- the bean instance typeM- the bean metadata value type
- All Implemented Interfaces:
Restartable,BeanManager<K,V,TransactionBatch>,BeanStatistics,AffinitySupport<K>
public class InfinispanBeanManager<K,V extends BeanInstance<K>,M> extends Object implements BeanManager<K,V,TransactionBatch>
ABeanManagerimplementation backed by an infinispan cache.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description InfinispanBeanManager(InfinispanBeanManagerConfiguration<K,V,M> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bean<K,V>createBean(V instance, K groupId)Bean<K,V>findBean(K id)intgetActiveCount()Batcher<TransactionBatch>getBatcher()Supplier<K>getIdentifierFactory()intgetPassiveCount()org.jboss.ejb.client.AffinitygetStrongAffinity()org.jboss.ejb.client.AffinitygetWeakAffinity(K id)booleanisRemotable(Throwable throwable)voidstart()voidstop()
-
-
-
Constructor Detail
-
InfinispanBeanManager
public InfinispanBeanManager(InfinispanBeanManagerConfiguration<K,V,M> configuration)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceRestartable
-
stop
public void stop()
- Specified by:
stopin interfaceRestartable
-
isRemotable
public boolean isRemotable(Throwable throwable)
- Specified by:
isRemotablein interfaceBeanManager<K,V extends BeanInstance<K>,M>
-
getStrongAffinity
public org.jboss.ejb.client.Affinity getStrongAffinity()
- Specified by:
getStrongAffinityin interfaceAffinitySupport<K>
-
getWeakAffinity
public org.jboss.ejb.client.Affinity getWeakAffinity(K id)
- Specified by:
getWeakAffinityin interfaceAffinitySupport<K>
-
createBean
public Bean<K,V> createBean(V instance, K groupId)
- Specified by:
createBeanin interfaceBeanManager<K,V extends BeanInstance<K>,M>
-
findBean
public Bean<K,V> findBean(K id) throws TimeoutException
- Specified by:
findBeanin interfaceBeanManager<K,V extends BeanInstance<K>,M>- Throws:
TimeoutException
-
getIdentifierFactory
public Supplier<K> getIdentifierFactory()
- Specified by:
getIdentifierFactoryin interfaceBeanManager<K,V extends BeanInstance<K>,M>
-
getBatcher
public Batcher<TransactionBatch> getBatcher()
- Specified by:
getBatcherin interfaceBeanManager<K,V extends BeanInstance<K>,M>
-
getActiveCount
public int getActiveCount()
- Specified by:
getActiveCountin interfaceBeanStatistics
-
getPassiveCount
public int getPassiveCount()
- Specified by:
getPassiveCountin interfaceBeanStatistics
-
-