\r\n

51Degrees Pipeline Node.js  4.4

51Degrees Pipeline for Node.js

Tracker Class Reference

Detailed Description

A tracker is an instance of datakeyed cache which, if a result is found in the cache, calls an additional boolean match method.

Inheritance diagram for Tracker:

[legend]

Collaboration diagram for Tracker:

[legend]

Public Member Functions

 track (key)
The track method calls the dataKeyedCache get method, if it receives a result it sends it onto a match function. More...
 match (key, value)
If object is found in cache, the match function is called. More...

Public Member Functions inherited from DataKeyedCache

 get (cachekey)
Get data out of the cache. More...
 put (cachekey, value)
Add an element to the cache. More...

Member Function Documentation

◆ match()

Tracker::match (   key,
  value  
)
inline

If object is found in cache, the match function is called.

Parameters
{string} - key key of piece of evidence
{*} - value value of piece of evidence
Returns
{boolean} whether put in cache

◆ track()

Tracker::track (   key )
inline

The track method calls the dataKeyedCache get method, if it receives a result it sends it onto a match function.

Parameters
{*} - key cache key to run through tracker
Returns
{boolean} result of tracking