Interface BeanGroupEntry<I,​T,​C>

  • Type Parameters:
    I - the bean identifier type
    T - the bean type
    All Known Implementing Classes:
    InfinispanBeanGroupEntry

    public interface BeanGroupEntry<I,​T,​C>
    The cache entry for a bean group
    Author:
    Paul Ferraro
    • Method Detail

      • getBeans

        MarshalledValue<Map<I,​T>,​C> getBeans()
        Returns the beans in this group indexed via identifier.
        Returns:
        a marshalled value
      • incrementUsage

        int incrementUsage​(I id)
        Increments the usage count of the specified bean.
        Parameters:
        id - a bean identifier
        Returns:
        the previous usage count
      • decrementUsage

        int decrementUsage​(I id)
        Decrements the usage count of the specified bean.
        Parameters:
        id - a bean identifier
        Returns:
        the current usage count
      • totalUsage

        int totalUsage()
        The total usage counts for all beans in this group/
        Returns:
        the total usage count