Interface BeanGroup<K,V extends BeanInstance<K>>
- Type Parameters:
K- the bean identifier typeV- the bean instance type
- All Superinterfaces:
AutoCloseable,ImmutableBeanGroup<K,V>
- All Known Subinterfaces:
MutableBeanGroup<K,V>
- All Known Implementing Classes:
DefaultBeanGroup
Represents a group of SFSBs that must be serialized together.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddBeanInstance(V instance) Adds the specified bean instance to this group.removeBeanInstance(K id) Removes the bean instance with the specified identifier from this group.Methods inherited from interface org.wildfly.clustering.ejb.cache.bean.ImmutableBeanGroup
close, getBeanInstance, getId, isEmpty
-
Method Details
-
addBeanInstance
Adds the specified bean instance to this group.- Parameters:
instance- a bean instance
-
removeBeanInstance
Removes the bean instance with the specified identifier from this group.- Parameters:
id- a bean instance identifier- Returns:
- the removed bean instance, or null, if no such bean instance existed
-