Class AttributeKey
java.lang.Object
org.apache.mina.core.session.AttributeKey
- All Implemented Interfaces:
Serializable
Creates a Key from a class name and an attribute name. The resulting Key will
be stored in the session Map.
For instance, we can create a 'processor' AttributeKey this way :
Such an attributeKey is mainly useful for debug purposes.
For instance, we can create a 'processor' AttributeKey this way :
private static final AttributeKey PROCESSOR = new AttributeKey(
SimpleIoProcessorPool.class, "processor");
This will create the SimpleIoProcessorPool.processor@7DE45C99 key
which will be stored in the session map.Such an attributeKey is mainly useful for debug purposes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe attribute's nameprivate static final longThe serial version UID -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDThe serial version UID- See Also:
-
name
The attribute's name
-
-
Constructor Details
-
AttributeKey
-
-
Method Details
-
toString
-
hashCode
-
equals
-