public class CoarseSessionFactory<L> extends Object implements SessionFactory<CoarseSessionEntry<L>,L>
SessionFactory for coarse granularity sessions.
A given session is mapped to 2 co-located cache entries, one containing the session meta data and local context (updated every request)
and the other containing the map of session attributes.| Constructor and Description |
|---|
CoarseSessionFactory(org.infinispan.Cache<String,CoarseSessionCacheEntry<L>> sessionCache,
org.infinispan.Cache<SessionAttributesCacheKey,org.wildfly.clustering.marshalling.MarshalledValue<Map<String,Object>,org.wildfly.clustering.marshalling.MarshallingContext>> attributesCache,
SessionContext context,
org.wildfly.clustering.marshalling.Marshaller<Map<String,Object>,org.wildfly.clustering.marshalling.MarshalledValue<Map<String,Object>,org.wildfly.clustering.marshalling.MarshallingContext>> marshaller,
LocalContextFactory<L> localContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSession |
createImmutableSession(String id,
CoarseSessionEntry<L> entry) |
Session<L> |
createSession(String id,
CoarseSessionEntry<L> entry) |
CoarseSessionEntry<L> |
createValue(String id,
Void context) |
void |
evict(String id) |
CoarseSessionEntry<L> |
findValue(String id) |
void |
remove(String id) |
public CoarseSessionFactory(org.infinispan.Cache<String,CoarseSessionCacheEntry<L>> sessionCache, org.infinispan.Cache<SessionAttributesCacheKey,org.wildfly.clustering.marshalling.MarshalledValue<Map<String,Object>,org.wildfly.clustering.marshalling.MarshallingContext>> attributesCache, SessionContext context, org.wildfly.clustering.marshalling.Marshaller<Map<String,Object>,org.wildfly.clustering.marshalling.MarshalledValue<Map<String,Object>,org.wildfly.clustering.marshalling.MarshallingContext>> marshaller, LocalContextFactory<L> localContextFactory)
public Session<L> createSession(String id, CoarseSessionEntry<L> entry)
createSession in interface SessionFactory<CoarseSessionEntry<L>,L>public ImmutableSession createImmutableSession(String id, CoarseSessionEntry<L> entry)
createImmutableSession in interface SessionFactory<CoarseSessionEntry<L>,L>public CoarseSessionEntry<L> createValue(String id, Void context)
createValue in interface Creator<String,CoarseSessionEntry<L>,Void>public CoarseSessionEntry<L> findValue(String id)
findValue in interface Locator<String,CoarseSessionEntry<L>>Copyright © 2015 JBoss by Red Hat. All rights reserved.