C# Class Brod.Storage.Segment

Inheritance: IDisposable
Afficher le fichier Open project: paralect/brod Class Usage Examples

Méthodes publiques

Méthode Description
Append ( byte payload ) : void
Dispose ( ) : void
Flush ( bool flushOnDisk ) : void
ReadMessagesBlock ( Int32 offset, Int32 blockLength ) : MessagesBlock

Read bytes, starting from byte from specified and

Segment ( String logDirectory, System.Int64 offset ) : System

Private Methods

Méthode Description
CreateEmptyFile ( string filePath ) : void

Creates empty file with specified path and name

GetSegmentFileName ( System.Int64 offset ) : String
Init ( ) : void

Method Details

Append() public méthode

public Append ( byte payload ) : void
payload byte
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Flush() public méthode

public Flush ( bool flushOnDisk ) : void
flushOnDisk bool
Résultat void

ReadMessagesBlock() public méthode

Read bytes, starting from byte from specified and
public ReadMessagesBlock ( Int32 offset, Int32 blockLength ) : MessagesBlock
offset System.Int32
blockLength System.Int32
Résultat Brod.Messages.MessagesBlock

Segment() public méthode

public Segment ( String logDirectory, System.Int64 offset ) : System
logDirectory String
offset System.Int64
Résultat System