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 type
V - the bean instance type
M - the bean metadata value type
All Implemented Interfaces:
BeanManager<K,V>, BeanStatistics, AffinitySupport<K>, org.wildfly.clustering.server.manager.Manager<K>, org.wildfly.clustering.server.manager.ManagerConfiguration<K>, org.wildfly.clustering.server.manager.Service

public class InfinispanBeanManager<K,V extends BeanInstance<K>,M> extends Object implements BeanManager<K,V>
A BeanManager implementation backed by an infinispan cache.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface org.wildfly.clustering.server.manager.Service
    • start

      public void start()
      Specified by:
      start in interface org.wildfly.clustering.server.manager.Service
    • stop

      public void stop()
      Specified by:
      stop in interface org.wildfly.clustering.server.manager.Service
    • isRemotable

      public boolean isRemotable(Throwable throwable)
      Specified by:
      isRemotable in interface BeanManager<K,V extends BeanInstance<K>>
    • getStrongAffinity

      public org.jboss.ejb.client.Affinity getStrongAffinity()
      Specified by:
      getStrongAffinity in interface AffinitySupport<K>
    • getWeakAffinity

      public org.jboss.ejb.client.Affinity getWeakAffinity(K id)
      Specified by:
      getWeakAffinity in interface AffinitySupport<K>
    • createBean

      public Bean<K,V> createBean(V instance, K groupId)
      Specified by:
      createBean in interface BeanManager<K,V extends BeanInstance<K>>
    • findBean

      public Bean<K,V> findBean(K id) throws TimeoutException
      Specified by:
      findBean in interface BeanManager<K,V extends BeanInstance<K>>
      Throws:
      TimeoutException
    • getIdentifierFactory

      public Supplier<K> getIdentifierFactory()
      Specified by:
      getIdentifierFactory in interface org.wildfly.clustering.server.manager.ManagerConfiguration<K>
    • getBatchFactory

      public Supplier<org.wildfly.clustering.cache.batch.Batch> getBatchFactory()
      Specified by:
      getBatchFactory in interface org.wildfly.clustering.server.manager.Manager<K>
    • getActiveCount

      public int getActiveCount()
      Specified by:
      getActiveCount in interface BeanStatistics
    • getPassiveCount

      public int getPassiveCount()
      Specified by:
      getPassiveCount in interface BeanStatistics