Class ExpiredBeanRemover<I,T>
- java.lang.Object
-
- org.wildfly.clustering.ejb.infinispan.ExpiredBeanRemover<I,T>
-
- Type Parameters:
I- the bean identifier typeT- 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
-
-
Constructor Summary
Constructors Constructor Description ExpiredBeanRemover(BeanFactory<I,T> factory, ExpirationConfiguration<T> expiration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanremove(I id, RemoveListener<T> listener)Removes the specified bean, triggering the specified listener
-
-
-
Constructor Detail
-
ExpiredBeanRemover
public ExpiredBeanRemover(BeanFactory<I,T> factory, ExpirationConfiguration<T> expiration)
-
-
Method Detail
-
remove
public boolean remove(I id, RemoveListener<T> listener)
Description copied from interface:BeanRemoverRemoves the specified bean, triggering the specified listener- Specified by:
removein interfaceBeanRemover<I,T>- Parameters:
id- a bean identifierlistener- a removal listener- Returns:
- true, if the bean was (or was already) removed, false otherwise
-
-