Interface BeanGroup<I,T>
-
- Type Parameters:
G- the group identifier typeI- the bean identifier typeT- the bean type
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
InfinispanBeanGroup
public interface BeanGroup<I,T> extends AutoCloseable
Represents a group of SFSBs that must be serialized together.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddBean(I id, T bean)voidclose()TgetBean(I id, PassivationListener<T> listener)Set<I>getBeans()IgetId()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)
-
-
-
Method Detail
-
getId
I getId()
-
isCloseable
boolean isCloseable()
-
getBean
T getBean(I id, PassivationListener<T> listener)
-
releaseBean
boolean releaseBean(I id, PassivationListener<T> listener)
-
removeBean
T removeBean(I id, PassivationListener<T> listener)
-
prePassivate
void prePassivate(I id, PassivationListener<T> listener)
-
postActivate
void postActivate(I id, PassivationListener<T> listener)
-
close
void close()
- Specified by:
closein interfaceAutoCloseable
-
-