public class FineSessionFactory<L> extends Object implements SessionFactory<MutableCacheEntry<FineSessionCacheEntry<L>>,L>
SessionFactory for fine granularity sessions.
A given session is mapped to N+1 co-located cache entries, where N is the number of session attributes.
One cache entry containing the session meta data, local context, and the set of attribute names;
and one cache entry per session attribute.| Constructor and Description |
|---|
FineSessionFactory(org.infinispan.Cache<String,FineSessionCacheEntry<L>> sessionCache,
org.infinispan.Cache<SessionAttributeCacheKey,org.wildfly.clustering.marshalling.MarshalledValue<Object,org.wildfly.clustering.marshalling.MarshallingContext>> attributeCache,
SessionContext context,
org.wildfly.clustering.marshalling.Marshaller<Object,org.wildfly.clustering.marshalling.MarshalledValue<Object,org.wildfly.clustering.marshalling.MarshallingContext>> marshaller,
LocalContextFactory<L> localContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSession |
createImmutableSession(String id,
MutableCacheEntry<FineSessionCacheEntry<L>> entry) |
Session<L> |
createSession(String id,
MutableCacheEntry<FineSessionCacheEntry<L>> entry) |
MutableCacheEntry<FineSessionCacheEntry<L>> |
createValue(String id,
Void context) |
void |
evict(String id) |
MutableCacheEntry<FineSessionCacheEntry<L>> |
findValue(String id) |
void |
remove(String id) |
public FineSessionFactory(org.infinispan.Cache<String,FineSessionCacheEntry<L>> sessionCache, org.infinispan.Cache<SessionAttributeCacheKey,org.wildfly.clustering.marshalling.MarshalledValue<Object,org.wildfly.clustering.marshalling.MarshallingContext>> attributeCache, SessionContext context, org.wildfly.clustering.marshalling.Marshaller<Object,org.wildfly.clustering.marshalling.MarshalledValue<Object,org.wildfly.clustering.marshalling.MarshallingContext>> marshaller, LocalContextFactory<L> localContextFactory)
public Session<L> createSession(String id, MutableCacheEntry<FineSessionCacheEntry<L>> entry)
createSession in interface SessionFactory<MutableCacheEntry<FineSessionCacheEntry<L>>,L>public ImmutableSession createImmutableSession(String id, MutableCacheEntry<FineSessionCacheEntry<L>> entry)
createImmutableSession in interface SessionFactory<MutableCacheEntry<FineSessionCacheEntry<L>>,L>public MutableCacheEntry<FineSessionCacheEntry<L>> findValue(String id)
findValue in interface Locator<String,MutableCacheEntry<FineSessionCacheEntry<L>>>public MutableCacheEntry<FineSessionCacheEntry<L>> createValue(String id, Void context)
createValue in interface Creator<String,MutableCacheEntry<FineSessionCacheEntry<L>>,Void>Copyright © 2015 JBoss by Red Hat. All rights reserved.