Public Member Functions | List of all members
GridGain.Datastream.StreamVisitor< K, V > Class Template Reference

Convenience adapter to visit every key-value tuple in the stream. Note that the visitor does not update the cache. More...

Inherits GridGain.Datastream.IStreamReceiver< K, V >.

Public Member Functions

 StreamVisitor (Action< ICache< K, V >, ICacheEntry< K, V >> action)
 Initializes a new instance of the StreamVisitor<K, V> class. More...
 
void Receive (ICache< K, V > cache, ICollection< ICacheEntry< K, V >> entries)
 

Detailed Description

Template Parameters
KThe type of the cache key.
VThe type of the cache value.

Constructor & Destructor Documentation

GridGain.Datastream.StreamVisitor< K, V >.StreamVisitor ( Action< ICache< K, V >, ICacheEntry< K, V >>  action)
Parameters
actionThe action to be called on each stream entry.

Member Function Documentation

void GridGain.Datastream.StreamVisitor< K, V >.Receive ( ICache< K, V >  cache,
ICollection< ICacheEntry< K, V >>  entries 
)

Updates cache with batch of entries.

Implements GridGain.Datastream.IStreamReceiver< K, V >.