Class SessionAttribute<T>

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
    Protected constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    By default two session attributes are considered equal if they have the same class
    int
    By default two session attributes are considered equal if they have the same class
    initialValue(int partitionId)
    Returns the initial value for the given attribute

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionAttribute

      protected SessionAttribute()
      Protected constructor
  • Method Details

    • initialValue

      public T initialValue(int partitionId)
      Returns the initial value for the given attribute
      Parameters:
      ctx - the context
      partitionId - 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
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      By default two session attributes are considered equal if they have the same class
      Overrides:
      equals in class Object