Class FineSessionAttributesFactory<S,C,L,V>
- java.lang.Object
-
- org.wildfly.clustering.web.hotrod.session.attributes.FineSessionAttributesFactory<S,C,L,V>
-
- All Implemented Interfaces:
AutoCloseable,Creator<String,Map<String,Object>,Void>,Locator<String,Map<String,Object>>,Remover<String>,ImmutableSessionAttributesFactory<Map<String,Object>>,SessionAttributesFactory<C,Map<String,Object>>
public class FineSessionAttributesFactory<S,C,L,V> extends Object implements SessionAttributesFactory<C,Map<String,Object>>
SessionAttributesFactoryfor 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.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description FineSessionAttributesFactory(HotRodSessionAttributesFactoryConfiguration<S,C,L,Object,V> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableSessionAttributescreateImmutableSessionAttributes(String id, Map<String,Object> attributes)SessionAttributescreateSessionAttributes(String id, Map<String,Object> attributes, ImmutableSessionMetaData metaData, C context)Map<String,Object>createValue(String id, Void context)Map<String,Object>findValue(String id)booleanremove(String id)Map<String,Object>tryValue(String id)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.web.cache.session.attributes.SessionAttributesFactory
close
-
-
-
-
Method Detail
-
createValue
public Map<String,Object> createValue(String id, Void context)
- Specified by:
createValuein interfaceCreator<S,C,L>
-
createSessionAttributes
public SessionAttributes createSessionAttributes(String id, Map<String,Object> attributes, ImmutableSessionMetaData metaData, C context)
- Specified by:
createSessionAttributesin interfaceSessionAttributesFactory<S,C>
-
createImmutableSessionAttributes
public ImmutableSessionAttributes createImmutableSessionAttributes(String id, Map<String,Object> attributes)
- Specified by:
createImmutableSessionAttributesin interfaceImmutableSessionAttributesFactory<S>
-
-