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>
A
BeanManager implementation backed by an infinispan cache.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionInfinispanBeanManager(InfinispanBeanManagerConfiguration<K, V, M> configuration) -
Method Summary
Modifier and TypeMethodDescriptioncreateBean(V instance, K groupId) intintorg.jboss.ejb.client.Affinityorg.jboss.ejb.client.AffinitygetWeakAffinity(K id) booleanisRemotable(Throwable throwable) voidstart()voidstop()
-
Constructor Details
-
InfinispanBeanManager
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceRestartable
-
stop
public void stop()- Specified by:
stopin interfaceRestartable
-
isRemotable
- Specified by:
isRemotablein interfaceBeanManager<K,V extends BeanInstance<K>, M>
-
getStrongAffinity
public org.jboss.ejb.client.Affinity getStrongAffinity()- Specified by:
getStrongAffinityin interfaceAffinitySupport<K>
-
getWeakAffinity
- Specified by:
getWeakAffinityin interfaceAffinitySupport<K>
-
createBean
- Specified by:
createBeanin interfaceBeanManager<K,V extends BeanInstance<K>, M>
-
findBean
- Specified by:
findBeanin interfaceBeanManager<K,V extends BeanInstance<K>, M> - Throws:
TimeoutException
-
getIdentifierFactory
- Specified by:
getIdentifierFactoryin interfaceBeanManager<K,V extends BeanInstance<K>, M>
-
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
-