C# 클래스 Brod.Storage.Segment

상속: IDisposable
파일 보기 프로젝트 열기: paralect/brod 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
CreateEmptyFile ( string filePath ) : void

Creates empty file with specified path and name

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

메소드 상세

Append() 공개 메소드

public Append ( byte payload ) : void
payload byte
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Flush() 공개 메소드

public Flush ( bool flushOnDisk ) : void
flushOnDisk bool
리턴 void

ReadMessagesBlock() 공개 메소드

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

Segment() 공개 메소드

public Segment ( String logDirectory, System.Int64 offset ) : System
logDirectory String
offset System.Int64
리턴 System