Class FineSessionAttributesFactory<S,C,L,V>
java.lang.Object
org.wildfly.clustering.web.infinispan.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>>
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.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionFineSessionAttributesFactory(InfinispanSessionAttributesFactoryConfiguration<S, C, L, Object, V> configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createImmutableSessionAttributes(String id, Map<String, Object> attributes) createSessionAttributes(String id, Map<String, Object> attributes, ImmutableSessionMetaData metaData, C context) createValue(String id, Void context) booleanboolean
-
Constructor Details
-
FineSessionAttributesFactory
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSessionAttributesFactory<S,C>
-
createValue
- Specified by:
createValuein interfaceCreator<S,C, L>
-
findValue
-
tryValue
-
remove
-
purge
-
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>
-