- java.lang.Object
-
- com.pervasive.datarush.cal.SessionAttribute<T>
-
- Type Parameters:
T
- the type of the attribute
public abstract class SessionAttribute<T> extends Object
Provides a key for a session attribute and, optionally, an initial value
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SessionAttribute()
Protected constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
By default two session attributes are considered equal if they have the same classint
hashCode()
By default two session attributes are considered equal if they have the same classT
initialValue(int partitionId)
Returns the initial value for the given attribute
-
-
-
Method Detail
-
initialValue
public T initialValue(int partitionId)
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
-
-