C# Class Res.Core.StorageBuffering.EventStorageWriter

Mostra file Open project: heartysoft/res Class Usage Examples

Public Methods

Method Description
EventStorageWriter ( int maxSize, System.TimeSpan maxAgeBeforeDrop, EventStorage storage, int maxBatchSize = 2048 ) : System
Start ( CancellationToken token ) : Task
Store ( CommitForStorage commit ) : Task

Private Methods

Method Description
run ( CancellationToken token ) : void
store ( Entry entries ) : void

Method Details

EventStorageWriter() public method

public EventStorageWriter ( int maxSize, System.TimeSpan maxAgeBeforeDrop, EventStorage storage, int maxBatchSize = 2048 ) : System
maxSize int
maxAgeBeforeDrop System.TimeSpan
storage EventStorage
maxBatchSize int
return System

Start() public method

public Start ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

Store() public method

public Store ( CommitForStorage commit ) : Task
commit Res.Core.Storage.CommitForStorage
return Task