Class FineSessionAttributes<NK,K,V>
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.fine.FineSessionAttributes<NK,K,V>
-
- All Implemented Interfaces:
AutoCloseable,SessionAttributes,ImmutableSessionAttributes,SessionAttributes
public class FineSessionAttributes<NK,K,V> extends Object implements SessionAttributes
Exposes session attributes for fine granularity sessions.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description FineSessionAttributes(NK key, AtomicReference<Map<String,UUID>> names, Map<NK,Map<String,UUID>> namesCache, Function<UUID,K> keyFactory, Map<K,V> attributeCache, org.wildfly.clustering.marshalling.spi.Marshaller<Object,V> marshaller, org.wildfly.clustering.ee.MutatorFactory<K,V> mutatorFactory, org.wildfly.clustering.ee.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)Set<String>getAttributeNames()ObjectremoveAttribute(String name)ObjectsetAttribute(String name, Object attribute)
-
-
-
Constructor Detail
-
FineSessionAttributes
public FineSessionAttributes(NK key, AtomicReference<Map<String,UUID>> names, Map<NK,Map<String,UUID>> namesCache, Function<UUID,K> keyFactory, Map<K,V> attributeCache, org.wildfly.clustering.marshalling.spi.Marshaller<Object,V> marshaller, org.wildfly.clustering.ee.MutatorFactory<K,V> mutatorFactory, org.wildfly.clustering.ee.Immutability immutability, CacheProperties properties, SessionAttributeActivationNotifier notifier)
-
-
Method Detail
-
removeAttribute
public Object removeAttribute(String name)
- Specified by:
removeAttributein interfaceSessionAttributes
-
setAttribute
public Object setAttribute(String name, Object attribute)
- Specified by:
setAttributein interfaceSessionAttributes
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein interfaceImmutableSessionAttributes
-
getAttributeNames
public Set<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceImmutableSessionAttributes
-
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
-
-