public class FineSessionAttributes<V> extends FineImmutableSessionAttributes<V> implements SessionAttributes
Constructor and Description |
---|
FineSessionAttributes(String id,
org.infinispan.Cache<SessionAttributeKey,V> cache,
Marshaller<Object,V,MarshallingContext> marshaller,
CacheProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Object |
getAttribute(String name)
Retrieves the value of the specified attribute.
|
Object |
removeAttribute(String name)
Removes the specified attribute.
|
Object |
setAttribute(String name,
Object attribute)
Sets the specified attribute to the specified value.
|
createKey, getAttributeNames, read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeNames
public FineSessionAttributes(String id, org.infinispan.Cache<SessionAttributeKey,V> cache, Marshaller<Object,V,MarshallingContext> marshaller, CacheProperties properties)
public Object removeAttribute(String name)
SessionAttributes
removeAttribute
in interface SessionAttributes
name
- a unique attribute namepublic Object setAttribute(String name, Object attribute)
SessionAttributes
setAttribute
in interface SessionAttributes
name
- a unique attribute nameattribute
- the attribute valuepublic Object getAttribute(String name)
ImmutableSessionAttributes
getAttribute
in interface ImmutableSessionAttributes
getAttribute
in class FineImmutableSessionAttributes<V>
name
- a unique attribute namepublic void close()
close
in interface AutoCloseable
Copyright © 2017 JBoss by Red Hat. All rights reserved.