C# Class ActivityStreams.Persistence.DefaultActivityRepository

Inheritance: IActivityRepository
Show file Open project: Elders/ActivityStreams

Public Methods

Method 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

Method 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 method

public Append ( Activity activity ) : void
activity Activity
return void

DefaultActivityRepository() public method

public DefaultActivityRepository ( IActivityStore store, IStreamStore streamStore ) : System
store IActivityStore
streamStore IStreamStore
return System

Load() public method

FanIn
public Load ( ActivityStream stream, ActivityStreamOptions feedOptions ) : IEnumerable
stream ActivityStream
feedOptions ActivityStreamOptions
return IEnumerable

Remove() public method

public Remove ( byte streamId, long timestamp ) : void
streamId byte
timestamp long
return void