Interface BeanGroupEntry<I,T,C>
-
- Type Parameters:
I- the bean identifier typeT- the bean type
- All Known Implementing Classes:
InfinispanBeanGroupEntry
public interface BeanGroupEntry<I,T,C>The cache entry for a bean group- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intdecrementUsage(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.intincrementUsage(I id)Increments the usage count of the specified bean.inttotalUsage()The total usage counts for all beans in this group/
-
-
-
Method Detail
-
getBeans
org.wildfly.clustering.marshalling.spi.MarshalledValue<Map<I,T>,C> getBeans()
Returns the beans in this group indexed via identifier.- Returns:
- a marshalled value
-
incrementUsage
int incrementUsage(I id)
Increments the usage count of the specified bean.- Parameters:
id- a bean identifier- Returns:
- the previous usage count
-
decrementUsage
int decrementUsage(I id)
Decrements the usage count of the specified bean.- Parameters:
id- a bean identifier- Returns:
- the current usage count
-
totalUsage
int totalUsage()
The total usage counts for all beans in this group/- Returns:
- the total usage count
-
-