Class InfinispanBeanGroupEntry<I,​T,​C>

    • Constructor Detail

      • InfinispanBeanGroupEntry

        public InfinispanBeanGroupEntry​(org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,​T>,​C> beans)
    • Method Detail

      • getBeans

        public org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,​T>,​C> getBeans()
        Description copied from interface: BeanGroupEntry
        Returns the beans in this group indexed via identifier.
        Specified by:
        getBeans in interface BeanGroupEntry<I,​T,​C>
        Returns:
        a marshalled value
      • incrementUsage

        public int incrementUsage​(I id)
        Description copied from interface: BeanGroupEntry
        Increments the usage count of the specified bean.
        Specified by:
        incrementUsage in interface BeanGroupEntry<I,​T,​C>
        Parameters:
        id - a bean identifier
        Returns:
        the previous usage count
      • decrementUsage

        public int decrementUsage​(I id)
        Description copied from interface: BeanGroupEntry
        Decrements the usage count of the specified bean.
        Specified by:
        decrementUsage in interface BeanGroupEntry<I,​T,​C>
        Parameters:
        id - a bean identifier
        Returns:
        the current usage count
      • totalUsage

        public int totalUsage()
        Description copied from interface: BeanGroupEntry
        The total usage counts for all beans in this group/
        Specified by:
        totalUsage in interface BeanGroupEntry<I,​T,​C>
        Returns:
        the total usage count