C# Class Platform.StreamStorage.File.FileEventStore

Checkpointed stream stored in file system with some specific naming conventions
Inheritance: IDisposable
ファイルを表示 Open project: Lokad/lokad-data-platform Class Usage Examples

Public Properties

Property Type Description
StoreId EventStoreId

Public Methods

Method Description
CreateNew ( string root, EventStoreId storeId ) : FileEventStore
Dispose ( ) : void
ExistsValid ( string root, EventStoreId storeId ) : bool
FileEventStore ( EventStoreId storeId, FileEventStoreChunk store, FileEventPointer checkpoint ) : System
OpenExistingForWriting ( string root, EventStoreId storeId ) : FileEventStore
OpenForReading ( string root, EventStoreId storeId ) : FileEventStore
ReadAll ( EventStoreOffset startOffset, int maxRecordCount ) : IEnumerable
Reset ( ) : void
Write ( string streamId, IEnumerable eventData ) : void

Method Details

CreateNew() public static method

public static CreateNew ( string root, EventStoreId storeId ) : FileEventStore
root string
storeId EventStoreId
return FileEventStore

Dispose() public method

public Dispose ( ) : void
return void

ExistsValid() public static method

public static ExistsValid ( string root, EventStoreId storeId ) : bool
root string
storeId EventStoreId
return bool

FileEventStore() public method

public FileEventStore ( EventStoreId storeId, FileEventStoreChunk store, FileEventPointer checkpoint ) : System
storeId EventStoreId
store FileEventStoreChunk
checkpoint FileEventPointer
return System

OpenExistingForWriting() public static method

public static OpenExistingForWriting ( string root, EventStoreId storeId ) : FileEventStore
root string
storeId EventStoreId
return FileEventStore

OpenForReading() public static method

public static OpenForReading ( string root, EventStoreId storeId ) : FileEventStore
root string
storeId EventStoreId
return FileEventStore

ReadAll() public method

public ReadAll ( EventStoreOffset startOffset, int maxRecordCount ) : IEnumerable
startOffset Platform.StreamClients.EventStoreOffset
maxRecordCount int
return IEnumerable

Reset() public method

public Reset ( ) : void
return void

Write() public method

public Write ( string streamId, IEnumerable eventData ) : void
streamId string
eventData IEnumerable
return void

Property Details

StoreId public_oe property

public EventStoreId StoreId
return EventStoreId