G - the group identifier typeI - the bean identifier typeT - the bean typepublic class InfinispanBeanGroupFactory<G,I,T> extends Object implements BeanGroupFactory<G,I,T>
Creator.CreateOperation<K,V>Locator.FindOperation<K,V>, Locator.LockingFindOperation<K,V>Evictor.EvictOperation<K,V>Remover.RemoveOperation<K,V>| Constructor and Description |
|---|
InfinispanBeanGroupFactory(org.infinispan.Cache<G,BeanGroupEntry<I,T>> cache,
CacheInvoker invoker,
MarshalledValueFactory<MarshallingContext> factory,
MarshallingContext context) |
| Modifier and Type | Method and Description |
|---|---|
BeanGroup<G,I,T> |
createGroup(G id,
BeanGroupEntry<I,T> entry)
Create a new bean group using the specified identifier and entry.
|
BeanGroupEntry<I,T> |
createValue(G id)
Creates a value in the cache, if it does not already exist.
|
void |
evict(G id)
Evict the specified item from the cache.
|
BeanGroupEntry<I,T> |
findValue(G id)
Locates the value in the cache with the specified identifier.
|
void |
remove(G id)
Removes the specified entry from the cache.
|
public InfinispanBeanGroupFactory(org.infinispan.Cache<G,BeanGroupEntry<I,T>> cache, CacheInvoker invoker, MarshalledValueFactory<MarshallingContext> factory, MarshallingContext context)
public BeanGroupEntry<I,T> createValue(G id)
CreatorcreateValue in interface Creator<G,BeanGroupEntry<I,T>>id - the cache entry identifier.public BeanGroupEntry<I,T> findValue(G id)
Locatorpublic void evict(G id)
Evictorpublic void remove(G id)
Removerpublic BeanGroup<G,I,T> createGroup(G id, BeanGroupEntry<I,T> entry)
BeanGroupFactorycreateGroup in interface BeanGroupFactory<G,I,T>id - a group identifierentry - the cache entry for the groupCopyright © 2014 JBoss by Red Hat. All rights reserved.