PreEmptive Analytics .NET API  1.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Public Attributes | List of all members
PreEmptive.Analytics.Common.LockingFeatureGroupDictionary Class Reference

A locking dictionary used for managing FeatureGroups. More...

Inherits PreEmptive.Analytics.Common.IFeatureGroupDictionary.

Public Member Functions

 LockingFeatureGroupDictionary (IDictionary< string, IList< FeatureGroup >> groups=null)
 Constructor for the LockingFeatureGroupDictionary. More...
 
FeatureGroup TryRemove (string name, string partitionid, out bool foundpartition)
 Will try to lookup a value by given name and partitionid. If partition id isn't found, then set foundpartition to false and will just return the last feature group added by the name. If nothing is found by the name, return null. More...
 
void Add (string name, FeatureGroup adder)
 Add a feature group by the name name. More...
 

Public Attributes

IDictionary< string, IList
< FeatureGroup > > 
Groups
 The groups of messages. More...
 

Detailed Description

A locking dictionary used for managing FeatureGroups.

Constructor & Destructor Documentation

PreEmptive.Analytics.Common.LockingFeatureGroupDictionary.LockingFeatureGroupDictionary ( IDictionary< string, IList< FeatureGroup >>  groups = null)

Constructor for the LockingFeatureGroupDictionary.

Parameters
groupsAn optional IDictionary to manage groups.

Member Function Documentation

void PreEmptive.Analytics.Common.LockingFeatureGroupDictionary.Add ( string  name,
FeatureGroup  adder 
)

Add a feature group by the name name.

Parameters
nameThen name of the feature group.
adderThe feature group to add.

Implements PreEmptive.Analytics.Common.IFeatureGroupDictionary.

FeatureGroup PreEmptive.Analytics.Common.LockingFeatureGroupDictionary.TryRemove ( string  name,
string  partitionid,
out bool  foundpartition 
)

Will try to lookup a value by given name and partitionid. If partition id isn't found, then set foundpartition to false and will just return the last feature group added by the name. If nothing is found by the name, return null.

Parameters
nameThe name of the feature.
partitionidThe ID of the partition the feature is a part of.
foundpartitionIf the partition was found.
Returns
The FeatureGroup that was found.

Implements PreEmptive.Analytics.Common.IFeatureGroupDictionary.

Member Data Documentation

IDictionary<string, IList<FeatureGroup> > PreEmptive.Analytics.Common.LockingFeatureGroupDictionary.Groups

The groups of messages.


The documentation for this class was generated from the following file: