C# Class ActivityStreams.Persistence.DefaultActivityRepository

Inheritance: IActivityRepository
Afficher le fichier Open project: Elders/ActivityStreams

Méthodes publiques

Méthode Description
Append ( Activity activity ) : void
DefaultActivityRepository ( IActivityStore store, IStreamStore streamStore ) : System
Load ( ActivityStream stream, ActivityStreamOptions feedOptions ) : IEnumerable

FanIn

Remove ( byte streamId, long timestamp ) : void

Private Methods

Méthode Description
FetchNextActivity ( Dictionary snapshot, byte streamId, SortedSet buffer ) : void

Gets the first activity from the specified stream and places it into the specified buffer.

GetSnapshot ( long>.Dictionary streams, ActivityStreamOptions options ) : Queue>.Dictionary

Gets unordered activities snapshot for the specified streams.

Method Details

Append() public méthode

public Append ( Activity activity ) : void
activity Activity
Résultat void

DefaultActivityRepository() public méthode

public DefaultActivityRepository ( IActivityStore store, IStreamStore streamStore ) : System
store IActivityStore
streamStore IStreamStore
Résultat System

Load() public méthode

FanIn
public Load ( ActivityStream stream, ActivityStreamOptions feedOptions ) : IEnumerable
stream ActivityStream
feedOptions ActivityStreamOptions
Résultat IEnumerable

Remove() public méthode

public Remove ( byte streamId, long timestamp ) : void
streamId byte
timestamp long
Résultat void