C# Class Marten.Events.Projections.Async.ProjectionTrack

Inheritance: IProjectionTrack
Mostra file Open project: JasperFx/marten Class Usage Examples

Public Methods

Method Description
CachePage ( EventPage page ) : Task
Dispose ( ) : void
ExecutePage ( EventPage page, CancellationToken cancellation ) : Task
Finished ( long lastEncountered ) : void
ProjectionTrack ( IFetcher fetcher, IDocumentStore store, IProjection projection, IDaemonLogger logger, IDaemonErrorHandler errorHandler ) : System
QueuePage ( EventPage page ) : void
Rebuild ( CancellationToken token = newCancellationToken() ) : Task
RunUntilEndOfEvents ( CancellationToken token = default(CancellationToken) ) : Task
Start ( ) : Task
Start ( DaemonLifecycle lifecycle ) : void
Stop ( ) : Task
StoreProgress ( Type viewType, EventPage page ) : Task
WaitUntilEventIsProcessed ( long sequence ) : Task

Private Methods

Method Description
clearExistingState ( CancellationToken token ) : Task
evaluateWaiters ( ) : void
executePage ( EventPage page, CancellationToken cancellation ) : Task
shouldRestartFetcher ( ) : bool
startConsumers ( ) : void
stopConsumers ( ) : void

Method Details

CachePage() public method

public CachePage ( EventPage page ) : Task
page EventPage
return Task

Dispose() public method

public Dispose ( ) : void
return void

ExecutePage() public method

public ExecutePage ( EventPage page, CancellationToken cancellation ) : Task
page EventPage
cancellation System.Threading.CancellationToken
return Task

Finished() public method

public Finished ( long lastEncountered ) : void
lastEncountered long
return void

ProjectionTrack() public method

public ProjectionTrack ( IFetcher fetcher, IDocumentStore store, IProjection projection, IDaemonLogger logger, IDaemonErrorHandler errorHandler ) : System
fetcher IFetcher
store IDocumentStore
projection IProjection
logger IDaemonLogger
errorHandler IDaemonErrorHandler
return System

QueuePage() public method

public QueuePage ( EventPage page ) : void
page EventPage
return void

Rebuild() public method

public Rebuild ( CancellationToken token = newCancellationToken() ) : Task
token System.Threading.CancellationToken
return Task

RunUntilEndOfEvents() public method

public RunUntilEndOfEvents ( CancellationToken token = default(CancellationToken) ) : Task
token System.Threading.CancellationToken
return Task

Start() public method

public Start ( ) : Task
return Task

Start() public method

public Start ( DaemonLifecycle lifecycle ) : void
lifecycle DaemonLifecycle
return void

Stop() public method

public Stop ( ) : Task
return Task

StoreProgress() public method

public StoreProgress ( Type viewType, EventPage page ) : Task
viewType System.Type
page EventPage
return Task

WaitUntilEventIsProcessed() public method

public WaitUntilEventIsProcessed ( long sequence ) : Task
sequence long
return Task