G
- the group identifier typeI
- the bean identifier typeT
- the bean typepublic class InfinispanBean<I,T> extends Object implements Bean<I,T>
Bean
implementation backed by an infinispan cache.Constructor and Description |
---|
InfinispanBean(I id,
BeanEntry<I> entry,
BeanGroup<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.
|
boolean |
equals(Object object) |
I |
getGroupId()
Returns the identifier of the group to which this bean is associated.
|
I |
getId()
Returns the identifier of this bean.
|
int |
hashCode() |
boolean |
isExpired()
Indicates whether or not the specified bean is expired.
|
boolean |
isValid()
Indicates whether this bean was removed.
|
boolean |
release()
Releases a reference to the bean made via
Bean.acquire() . |
void |
remove(RemoveListener<T> listener)
Removes this bean, notifying the specified listener.
|
String |
toString() |
public I getGroupId()
Bean
getGroupId
in interface Bean<I,T>
public boolean isExpired()
Bean
public boolean isValid()
Bean
public void remove(RemoveListener<T> listener)
Bean
public T acquire()
Bean
Bean.acquire()
should be paired with a call to Bean.release()
.public boolean release()
Bean
Bean.acquire()
.public void close()
Bean
Bean.release()
returned true.Copyright © 2017 JBoss by Red Hat. All rights reserved.