java.lang.Object
com.pervasive.datarush.cal.SessionAttribute<T>
- Type Parameters:
T- the type of the attribute
Provides a key for a session attribute and, optionally, an initial value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanBy default two session attributes are considered equal if they have the same classinthashCode()By default two session attributes are considered equal if they have the same classinitialValue(int partitionId) Returns the initial value for the given attribute
-
Constructor Details
-
SessionAttribute
protected SessionAttribute()Protected constructor
-
-
Method Details
-
initialValue
Returns the initial value for the given attribute- Parameters:
ctx- the contextpartitionId- the partition id- Returns:
- the initial value for the given attribute
-
hashCode
public int hashCode()By default two session attributes are considered equal if they have the same class -
equals
By default two session attributes are considered equal if they have the same class
-