Class AttributeScope

java.lang.Object
com.pervasive.datarush.cal.AttributeScope
All Implemented Interfaces:
Serializable

public final class AttributeScope extends Object implements Serializable
A session qualifier to provide uniqueness of session attributes.
See Also:
  • Method Details

    • getId

      public long getId()
      Returns the unique id
      Returns:
      the unique id
    • scope

      public static AttributeScope scope(long id)
      Intended as a unit-testing hook; use unique() instead.
      Parameters:
      id - the unique value for this scope
      Returns:
      a new attribute scope.
    • unique

      public static AttributeScope unique()
      Returns the next unique attribute scope. The that attribute scopes are unique within a client which makes them unique within a DistributedCallableContext on a particular virtual node.
      Returns:
      a unique-per-client scope
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object