Package org.wildfly.clustering.session
Interface ImmutableSessionAttributes
- All Known Subinterfaces:
SessionAttributes
- All Known Implementing Classes:
OOBSession
public interface ImmutableSessionAttributes
Provides read-only access to a session's attributes.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Retrieves the value of the specified attribute.Returns the names of the attributes of this session.getAttributes(Class<T> targetClass) Convenience method returning a map of attributes whose values are instances of the specified class.
-
Method Details
-
getAttributeNames
Returns the names of the attributes of this session.- Returns:
- a set of unique attribute names
-
getAttribute
Retrieves the value of the specified attribute.- Parameters:
name- a unique attribute name- Returns:
- the attribute value, or null if the attribute does not exist.
-
getAttributes
Convenience method returning a map of attributes whose values are instances of the specified class.- Parameters:
targetClass- a target class- Returns:
- an unmodifiable map of attributes implementing the specified class
-