I - the bean identifier typeT - the bean typepublic class InfinispanBeanGroupFactory<I,T> extends Object implements BeanGroupFactory<I,T>
| Constructor and Description |
|---|
InfinispanBeanGroupFactory(org.infinispan.Cache<BeanGroupKey<I>,BeanGroupEntry<I,T>> cache,
org.infinispan.Cache<BeanKey<I>,BeanEntry<I>> beanCache,
MarshalledValueFactory<MarshallingContext> factory,
MarshallingContext context,
CacheProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
BeanGroup<I,T> |
createGroup(I id,
BeanGroupEntry<I,T> entry)
Create a new bean group using the specified identifier and entry.
|
BeanGroupKey<I> |
createKey(I id) |
BeanGroupEntry<I,T> |
createValue(I id,
Void context)
Creates a value in the cache, if it does not already exist.
|
void |
evict(I id)
Evict the specified item from the cache.
|
BeanGroupEntry<I,T> |
findValue(I id)
Locates the value in the cache with the specified identifier.
|
boolean |
remove(I id)
Removes the specified entry from the cache.
|
BeanGroupEntry<I,T> |
tryValue(I id)
Returns the value for the specified key, if possible.
|
public InfinispanBeanGroupFactory(org.infinispan.Cache<BeanGroupKey<I>,BeanGroupEntry<I,T>> cache, org.infinispan.Cache<BeanKey<I>,BeanEntry<I>> beanCache, MarshalledValueFactory<MarshallingContext> factory, MarshallingContext context, CacheProperties properties)
public BeanGroupKey<I> createKey(I id)
createKey in interface BeanGroupFactory<I,T>public BeanGroupEntry<I,T> createValue(I id, Void context)
CreatorcreateValue in interface Creator<I,BeanGroupEntry<I,T>,Void>id - the cache entry identifier.public BeanGroupEntry<I,T> findValue(I id)
Locatorpublic BeanGroupEntry<I,T> tryValue(I id)
Locatorpublic void evict(I id)
Evictorpublic boolean remove(I id)
Removerpublic BeanGroup<I,T> createGroup(I id, BeanGroupEntry<I,T> entry)
BeanGroupFactorycreateGroup in interface BeanGroupFactory<I,T>id - a group identifierentry - the cache entry for the groupCopyright © 2021 JBoss by Red Hat. All rights reserved.