Class FineSessionAttributes<K,V>
java.lang.Object
org.wildfly.clustering.session.cache.attributes.AbstractSessionAttributes
org.wildfly.clustering.session.cache.attributes.fine.FineSessionAttributes<K,V>
- Type Parameters:
K- the cache key typeV- the cache value type
- All Implemented Interfaces:
AutoCloseable, Map<String,Object>, SessionAttributes
Exposes session attributes for a fine granularity sessions.
- Author:
- Paul Ferraro
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFineSessionAttributes(K key, Map<String, Object> attributes, CacheEntryMutatorFactory<K, Map<String, V>> mutatorFactory, Marshaller<Object, V> marshaller, Predicate<Object> immutable, CacheProperties properties, SessionAttributeActivationNotifier notifier) Creates a fine-granularity session attributes implementation. -
Method Summary
Methods inherited from class AbstractSessionAttributes
entrySet, keySet, valuesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface SessionAttributes
clear, containsKey, containsValue, isEmpty, put, putAll, size
-
Constructor Details
-
FineSessionAttributes
public FineSessionAttributes(K key, Map<String, Object> attributes, CacheEntryMutatorFactory<K, Map<String, V>> mutatorFactory, Marshaller<Object, V> marshaller, Predicate<Object> immutable, CacheProperties properties, SessionAttributeActivationNotifier notifier) Creates a fine-granularity session attributes implementation.- Parameters:
key- the session attributes cache keyattributes- a map of session attributesmutatorFactory- a factory for creating a mutator of the session attributes cache entrymarshaller- a marshaller of session attributesimmutable- a predicate used to determine whether a given session attribute is immutableproperties- the properties of the associated cachenotifier- a notifier of session attribute activation/passivation
-
-
Method Details
-
get
-
remove
-
put
-
close
public void close()
-