- 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:
DistributedCallableContext, Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetId()Returns the unique idinthashCode()static AttributeScopescope(long id)Intended as a unit-testing hook; useunique()instead.static AttributeScopeunique()Returns the next unique attribute scope.
-
-
-
Method Detail
-
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; useunique()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 aDistributedCallableContexton a particular virtual node.- Returns:
- a unique-per-client scope
-
-