G
- the group identifier typeI
- the bean identifier typeT
- the bean typepublic class InfinispanBeanGroup<G,I,T> extends Object implements BeanGroup<G,I,T>
BeanGroup
implementation backed by an infinispan cache.Constructor and Description |
---|
InfinispanBeanGroup(G id,
BeanGroupEntry<I,T> entry,
MarshallingContext context,
Mutator mutator,
Remover<G> remover) |
Modifier and Type | Method and Description |
---|---|
void |
addBean(I id,
T bean) |
void |
close() |
T |
getBean(I id,
PassivationListener<T> listener) |
Set<I> |
getBeans() |
G |
getId() |
boolean |
isCloseable() |
void |
postActivate(I id,
PassivationListener<T> listener) |
void |
prePassivate(I id,
PassivationListener<T> listener) |
boolean |
releaseBean(I id,
PassivationListener<T> listener) |
T |
removeBean(I id) |
public InfinispanBeanGroup(G id, BeanGroupEntry<I,T> entry, MarshallingContext context, Mutator mutator, Remover<G> remover)
public T getBean(I id, PassivationListener<T> listener)
public boolean releaseBean(I id, PassivationListener<T> listener)
releaseBean
in interface BeanGroup<G,I,T>
public boolean isCloseable()
isCloseable
in interface BeanGroup<G,I,T>
public void close()
public void prePassivate(I id, PassivationListener<T> listener)
prePassivate
in interface BeanGroup<G,I,T>
public void postActivate(I id, PassivationListener<T> listener)
postActivate
in interface BeanGroup<G,I,T>
Copyright © 2014 JBoss by Red Hat. All rights reserved.