C# Class Platform.StreamStorage.File.FileEventPointer

Not intended to be used outside Platform.Core itself. Maintains a pointer to a specific event within an event store persisted in a single mutable file (in the filesystem).
Inheritance: IEventPointer
ファイルを表示 Open project: Lokad/lokad-data-platform Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
OpenOrCreateForReading ( string fullName ) : FileEventPointer
OpenOrCreateForWriting ( string fullName ) : FileEventPointer
Read ( ) : long
Write ( long position ) : void

Private Methods

Method Description
FileEventPointer ( FileStream stream, bool isWriter ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

OpenOrCreateForReading() public static method

public static OpenOrCreateForReading ( string fullName ) : FileEventPointer
fullName string
return FileEventPointer

OpenOrCreateForWriting() public static method

public static OpenOrCreateForWriting ( string fullName ) : FileEventPointer
fullName string
return FileEventPointer

Read() public method

public Read ( ) : long
return long

Write() public method

public Write ( long position ) : void
position long
return void