Class FineSessionAttributesFactory<S,C,L,V>
java.lang.Object
org.wildfly.clustering.session.infinispan.remote.attributes.FineSessionAttributesFactory<S,C,L,V>
- All Implemented Interfaces:
AutoCloseable,org.wildfly.clustering.cache.Creator<String,,Map<String, Object>, Void> org.wildfly.clustering.cache.Locator<String,,Map<String, Object>> org.wildfly.clustering.cache.Remover<String>,org.wildfly.clustering.server.Registration,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
-
Field Summary
Fields inherited from interface org.wildfly.clustering.server.Registration
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionFineSessionAttributesFactory(HotRodSessionAttributesFactoryConfiguration<S, C, L, Object, V> configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.wildfly.clustering.session.ImmutableSessionAttributescreateImmutableSessionAttributes(String id, Map<String, Object> attributes) createSessionAttributes(String id, Map<String, Object> attributes, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, C context) createValue(String id, Void context) createValueAsync(String id, Void context) findValueAsync(String id) removeAsync(String id) tryValueAsync(String id) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.cache.Locator
findValue, tryValueMethods inherited from interface org.wildfly.clustering.cache.Remover
purge, purgeAsync, remove
-
Constructor Details
-
FineSessionAttributesFactory
-
-
Method Details
-
createValue
-
createValueAsync
-
findValueAsync
-
tryValueAsync
-
removeAsync
- Specified by:
removeAsyncin interfaceorg.wildfly.clustering.cache.Remover<S>
-
createSessionAttributes
public SessionAttributes createSessionAttributes(String id, Map<String, Object> attributes, org.wildfly.clustering.session.ImmutableSessionMetaData metaData, C context) - Specified by:
createSessionAttributesin interfaceSessionAttributesFactory<S,C>
-
createImmutableSessionAttributes
public org.wildfly.clustering.session.ImmutableSessionAttributes createImmutableSessionAttributes(String id, Map<String, Object> attributes) - Specified by:
createImmutableSessionAttributesin interfaceImmutableSessionAttributesFactory<S>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.Registration
-