Class InfinispanBeanGroup<I,T,C>
- java.lang.Object
-
- org.wildfly.clustering.ejb.infinispan.group.InfinispanBeanGroup<I,T,C>
-
- Type Parameters:
I- the bean identifier typeT- the bean typeC- the marshalling context type
- All Implemented Interfaces:
AutoCloseable,BeanGroup<I,T>
public class InfinispanBeanGroup<I,T,C> extends Object implements BeanGroup<I,T>
ABeanGroupimplementation backed by an infinispan cache.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description InfinispanBeanGroup(I id, BeanGroupEntry<I,T,C> entry, C context, org.wildfly.clustering.ee.Mutator mutator, org.wildfly.clustering.ee.Remover<I> remover)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBean(I id, T bean)voidclose()booleanequals(Object object)TgetBean(I id, PassivationListener<T> listener)Set<I>getBeans()IgetId()inthashCode()booleanisCloseable()voidpostActivate(I id, PassivationListener<T> listener)voidprePassivate(I id, PassivationListener<T> listener)booleanreleaseBean(I id, PassivationListener<T> listener)TremoveBean(I id, PassivationListener<T> listener)StringtoString()
-
-
-
Method Detail
-
getBean
public T getBean(I id, PassivationListener<T> listener)
-
removeBean
public T removeBean(I id, PassivationListener<T> listener)
- Specified by:
removeBeanin interfaceBeanGroup<I,T>
-
releaseBean
public boolean releaseBean(I id, PassivationListener<T> listener)
- Specified by:
releaseBeanin interfaceBeanGroup<I,T>
-
isCloseable
public boolean isCloseable()
- Specified by:
isCloseablein interfaceBeanGroup<I,T>
-
close
public void close()
-
prePassivate
public void prePassivate(I id, PassivationListener<T> listener)
- Specified by:
prePassivatein interfaceBeanGroup<I,T>
-
postActivate
public void postActivate(I id, PassivationListener<T> listener)
- Specified by:
postActivatein interfaceBeanGroup<I,T>
-
-