I - the bean identifier typeT - the bean typepublic class InfinispanBeanGroupEntry<I,T,C> extends Object implements BeanGroupEntry<I,T,C>, Function<I,AtomicInteger>
| Constructor and Description |
|---|
InfinispanBeanGroupEntry(org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,T>,C> beans) |
| Modifier and Type | Method and Description |
|---|---|
AtomicInteger |
apply(I key) |
int |
decrementUsage(I id)
Decrements the usage count of the specified bean.
|
org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,T>,C> |
getBeans()
Returns the beans in this group indexed via identifier.
|
int |
incrementUsage(I id)
Increments the usage count of the specified bean.
|
int |
totalUsage()
The total usage counts for all beans in this group/
|
public org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,T>,C> getBeans()
BeanGroupEntrygetBeans in interface BeanGroupEntry<I,T,C>public int incrementUsage(I id)
BeanGroupEntryincrementUsage in interface BeanGroupEntry<I,T,C>id - a bean identifierpublic int decrementUsage(I id)
BeanGroupEntrydecrementUsage in interface BeanGroupEntry<I,T,C>id - a bean identifierpublic int totalUsage()
BeanGroupEntrytotalUsage in interface BeanGroupEntry<I,T,C>public AtomicInteger apply(I key)
apply in interface Function<I,AtomicInteger>Copyright © 2021 JBoss by Red Hat. All rights reserved.