G - the group identifier typeI - the bean identifier typeT - the bean typepublic class InfinispanBean<G,I,T> extends Object implements Bean<G,I,T>
Bean implementation backed by an infinispan cache.| Constructor and Description |
|---|
InfinispanBean(I id,
BeanEntry<G> entry,
BeanGroup<G,I,T> group,
Mutator mutator,
BeanRemover<I,T> remover,
Time timeout,
PassivationListener<T> listener) |
| Modifier and Type | Method and Description |
|---|---|
T |
acquire()
Acquires a reference to the bean instance.
|
void |
close()
Closes any resources used by this bean.
|
G |
getGroupId()
Returns the identifier of the group to which this bean is associated.
|
I |
getId()
Returns the identifier of this bean.
|
boolean |
isExpired()
Indicates whether or not the specified bean is expired.
|
boolean |
release()
Releases a reference to the bean made via
Bean.acquire(). |
void |
remove(RemoveListener<T> listener)
Removes this bean, notifying the specified listener.
|
public G getGroupId()
BeangetGroupId in interface Bean<G,I,T>public boolean isExpired()
Beanpublic void remove(RemoveListener<T> listener)
Beanpublic T acquire()
BeanBean.acquire() should be paired with a call to Bean.release().public boolean release()
BeanBean.acquire().public void close()
BeanBean.release() returned true.Copyright © 2014 JBoss by Red Hat. All rights reserved.