Interface ImmutableBeanEntry<G>

  • Type Parameters:
    G - the group identifier type
    All Known Subinterfaces:
    BeanEntry<G>
    All Known Implementing Classes:
    InfinispanBeanEntry

    public interface ImmutableBeanEntry<G>
    An immutable view of a cache entry for a bean.
    Author:
    Paul Ferraro
    • Method Detail

      • getGroupId

        G getGroupId()
        Returns the group identifier associated with the bean entry
        Returns:
        a group identifier
      • getBeanName

        String getBeanName()
        Returns the name of this bean
        Returns:
        a bean name
      • getLastAccessedTime

        Instant getLastAccessedTime()
        Returns the last time this bean was accessed.
        Returns:
        an instant in time
      • isExpired

        default boolean isExpired​(Duration timeout)
        Indicates whether the bean is expired relative to the specified timeout
        Parameters:
        timeout - a duration after which a bean should be considered to be expired.
        Returns:
        true, if the bean is expired, false otherwise