public class FineSessionAttributesFactory<V> extends Object implements SessionAttributesFactory<Map<String,UUID>>
SessionAttributesFactory for fine granularity sessions.
A given session's attributes are mapped to N+1 co-located cache entries, where N is the number of session attributes.
A separate cache entry stores the activate attribute names for the session.| Constructor and Description |
|---|
FineSessionAttributesFactory(org.infinispan.Cache<SessionAttributeNamesKey,Map<String,UUID>> namesCache,
org.infinispan.Cache<SessionAttributeKey,V> attributeCache,
Marshaller<Object,V> marshaller,
CacheProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSessionAttributes |
createImmutableSessionAttributes(String id,
Map<String,UUID> names) |
SessionAttributes |
createSessionAttributes(String id,
Map<String,UUID> names) |
Map<String,UUID> |
createValue(String id,
Void context) |
void |
evicted(org.infinispan.notifications.cachelistener.event.CacheEntriesEvictedEvent<Key<String>,?> event) |
Map<String,UUID> |
findValue(String id) |
boolean |
remove(String id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittryValuepurgepublic FineSessionAttributesFactory(org.infinispan.Cache<SessionAttributeNamesKey,Map<String,UUID>> namesCache, org.infinispan.Cache<SessionAttributeKey,V> attributeCache, Marshaller<Object,V> marshaller, CacheProperties properties)
public Map<String,UUID> findValue(String id)
findValue in interface org.wildfly.clustering.ee.Locator<String,Map<String,UUID>>public boolean remove(String id)
remove in interface org.wildfly.clustering.ee.Remover<String>public SessionAttributes createSessionAttributes(String id, Map<String,UUID> names)
createSessionAttributes in interface SessionAttributesFactory<Map<String,UUID>>public ImmutableSessionAttributes createImmutableSessionAttributes(String id, Map<String,UUID> names)
createImmutableSessionAttributes in interface SessionAttributesFactory<Map<String,UUID>>Copyright © 2019 JBoss by Red Hat. All rights reserved.