Class ExpiredBeanRemover<I,​T>

  • Type Parameters:
    I - the bean identifier type
    T - the bean type
    All Implemented Interfaces:
    BeanRemover<I,​T>

    public class ExpiredBeanRemover<I,​T>
    extends Object
    implements BeanRemover<I,​T>
    Bean remover that removes a bean if and only if it is expired.
    Author:
    Paul Ferraro
    • Method Detail

      • 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