public class FineSessionAttributesFactory<V> extends Object implements SessionAttributesFactory<SessionAttributeNamesEntry>
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,SessionAttributeNamesEntry> namesCache,
org.infinispan.Cache<SessionAttributeKey,V> attributeCache,
Marshaller<Object,V> marshaller,
CacheProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSessionAttributes |
createImmutableSessionAttributes(String id,
SessionAttributeNamesEntry entry) |
SessionAttributes |
createSessionAttributes(String id,
SessionAttributeNamesEntry entry) |
SessionAttributeNamesEntry |
createValue(String id,
Void context) |
void |
evicted(org.infinispan.notifications.cachelistener.event.CacheEntriesEvictedEvent<Key<String>,?> event) |
SessionAttributeNamesEntry |
findValue(String id) |
boolean |
remove(String id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittryValuepurgepublic FineSessionAttributesFactory(org.infinispan.Cache<SessionAttributeNamesKey,SessionAttributeNamesEntry> namesCache, org.infinispan.Cache<SessionAttributeKey,V> attributeCache, Marshaller<Object,V> marshaller, CacheProperties properties)
public SessionAttributeNamesEntry createValue(String id, Void context)
createValue in interface org.wildfly.clustering.ee.Creator<String,SessionAttributeNamesEntry,Void>public SessionAttributeNamesEntry findValue(String id)
findValue in interface org.wildfly.clustering.ee.Locator<String,SessionAttributeNamesEntry>public boolean remove(String id)
remove in interface org.wildfly.clustering.ee.Remover<String>public SessionAttributes createSessionAttributes(String id, SessionAttributeNamesEntry entry)
createSessionAttributes in interface SessionAttributesFactory<SessionAttributeNamesEntry>public ImmutableSessionAttributes createImmutableSessionAttributes(String id, SessionAttributeNamesEntry entry)
createImmutableSessionAttributes in interface SessionAttributesFactory<SessionAttributeNamesEntry>Copyright © 2019 JBoss by Red Hat. All rights reserved.