Class InfinispanBeanFactory<I,​T,​C>

  • Type Parameters:
    I - the bean identifier type
    T - the bean type
    C - the marshalling context type
    All Implemented Interfaces:
    org.wildfly.clustering.ee.Creator<I,​BeanEntry<I>,​I>, org.wildfly.clustering.ee.Locator<I,​BeanEntry<I>>, BeanFactory<I,​T>, BeanRemover<I,​T>

    public class InfinispanBeanFactory<I,​T,​C>
    extends Object
    implements BeanFactory<I,​T>
    Encapsulates the cache mapping strategy for a bean.
    Author:
    Paul Ferraro
    • Method Detail

      • findValue

        public BeanEntry<I> findValue​(I id)
        Specified by:
        findValue in interface org.wildfly.clustering.ee.Locator<I,​T>
      • tryValue

        public BeanEntry<I> tryValue​(I id)
        Specified by:
        tryValue in interface org.wildfly.clustering.ee.Locator<I,​T>
      • createValue

        public BeanEntry<I> createValue​(I id,
                                        I groupId)
        Specified by:
        createValue in interface org.wildfly.clustering.ee.Creator<I,​T,​C>
      • remove

        public boolean remove​(I id,
                              RemoveListener<T> listener)
        Description copied from interface: BeanRemover
        Removes the specified bean, triggering the specified listener
        Specified by:
        remove in interface BeanRemover<I,​T>
        Parameters:
        id - a bean identifier
        listener - a removal listener
        Returns:
        true, if the bean was (or was already) removed, false otherwise