Class FineSessionAttributes<K,V>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.attributes.SimpleImmutableSessionAttributes
-
- org.wildfly.clustering.web.cache.session.attributes.fine.FineSessionAttributes<K,V>
-
- All Implemented Interfaces:
AutoCloseable,SessionAttributes,ImmutableSessionAttributes,SessionAttributes
public class FineSessionAttributes<K,V> extends SimpleImmutableSessionAttributes implements SessionAttributes
Exposes session attributes for a fine granularity sessions.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description FineSessionAttributes(K key, Map<String,Object> attributes, MutatorFactory<K,Map<String,V>> mutatorFactory, Marshaller<Object,V> marshaller, Immutability immutability, CacheProperties properties, SessionAttributeActivationNotifier notifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.ObjectgetAttribute(String name)ObjectremoveAttribute(String name)ObjectsetAttribute(String name, Object value)-
Methods inherited from class org.wildfly.clustering.web.cache.session.attributes.SimpleImmutableSessionAttributes
getAttributeNames
-
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.session.ImmutableSessionAttributes
getAttributeNames
-
-
-
-
Constructor Detail
-
FineSessionAttributes
public FineSessionAttributes(K key, Map<String,Object> attributes, MutatorFactory<K,Map<String,V>> mutatorFactory, Marshaller<Object,V> marshaller, Immutability immutability, CacheProperties properties, SessionAttributeActivationNotifier notifier)
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein interfaceImmutableSessionAttributes- Overrides:
getAttributein classSimpleImmutableSessionAttributes
-
removeAttribute
public Object removeAttribute(String name)
- Specified by:
removeAttributein interfaceSessionAttributes
-
setAttribute
public Object setAttribute(String name, Object value)
- Specified by:
setAttributein interfaceSessionAttributes
-
close
public void close()
Description copied from interface:SessionAttributesSignals the end of the transient lifecycle of this session, typically triggered at the end of a given request.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSessionAttributes
-
-