C# 클래스 DeltaDNA.EventStore

The Event Store queues game events until they are ready to be sent to Collect. It is a double buffer queue, events are written to one queue whilst being read from another. Mostly files are used to hold the events as UTF8 json strings. For platforms that don't support filesystem, such as Webplayer in memory files are used instead.
상속: IDisposable
파일 보기 프로젝트 열기: deltaDNA/unity-sdk

공개 메소드들

메소드 설명
ClearAll ( ) : void

Clears both in and out buffers.

ClearOut ( ) : void

Clears the out buffer.

ClearStream ( Stream stream ) : void
Dispose ( ) : void
EventStore ( string dir ) : System

Initializes a new instance of the DeltaDNA.EventStore class.

FlushBuffers ( ) : void

Flushs the buffers to disk.

Push ( string obj ) : bool

Add a new event to the in buffer.

PushEvent ( string obj, Stream stream ) : bool
Read ( ) : List

Reads events from the out buffer.

ReadEvents ( Stream stream, IList events ) : void
Swap ( ) : bool

Swap the in and out buffers over.

SwapStreams ( Stream &sin, Stream &sout ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
InitialiseFileStreams ( string dir ) : bool

메소드 상세

ClearAll() 공개 메소드

Clears both in and out buffers.
public ClearAll ( ) : void
리턴 void

ClearOut() 공개 메소드

Clears the out buffer.
public ClearOut ( ) : void
리턴 void

ClearStream() 공개 정적인 메소드

public static ClearStream ( Stream stream ) : void
stream Stream
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EventStore() 공개 메소드

Initializes a new instance of the DeltaDNA.EventStore class.
public EventStore ( string dir ) : System
dir string Full path on the filesystem where to create the files.
리턴 System

FlushBuffers() 공개 메소드

Flushs the buffers to disk.
public FlushBuffers ( ) : void
리턴 void

Push() 공개 메소드

Add a new event to the in buffer.
public Push ( string obj ) : bool
obj string
리턴 bool

PushEvent() 공개 정적인 메소드

public static PushEvent ( string obj, Stream stream ) : bool
obj string
stream Stream
리턴 bool

Read() 공개 메소드

Reads events from the out buffer.
public Read ( ) : List
리턴 List

ReadEvents() 공개 정적인 메소드

public static ReadEvents ( Stream stream, IList events ) : void
stream Stream
events IList
리턴 void

Swap() 공개 메소드

Swap the in and out buffers over.
public Swap ( ) : bool
리턴 bool

SwapStreams() 공개 정적인 메소드

public static SwapStreams ( Stream &sin, Stream &sout ) : void
sin Stream
sout Stream
리턴 void