I - the bean identifier typeT - the bean typepublic class InfinispanBeanGroupEntry<I,T> extends Object implements BeanGroupEntry<I,T>, Function<I,AtomicInteger>
| Constructor and Description |
|---|
InfinispanBeanGroupEntry(org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,T>,MarshallingContext> 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>,MarshallingContext> |
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 InfinispanBeanGroupEntry(org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,T>,MarshallingContext> beans)
public org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,T>,MarshallingContext> getBeans()
BeanGroupEntrygetBeans in interface BeanGroupEntry<I,T>public int incrementUsage(I id)
BeanGroupEntryincrementUsage in interface BeanGroupEntry<I,T>id - a bean identifierpublic int decrementUsage(I id)
BeanGroupEntrydecrementUsage in interface BeanGroupEntry<I,T>id - a bean identifierpublic int totalUsage()
BeanGroupEntrytotalUsage in interface BeanGroupEntry<I,T>public AtomicInteger apply(I key)
apply in interface Function<I,AtomicInteger>Copyright © 2018 JBoss by Red Hat. All rights reserved.