C# 클래스 amp.eventing.streaming.DefaultEventStream

상속: IEventStream
파일 보기 프로젝트 열기: Berico-Technologies/AMP 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_log ILog

공개 메소드들

메소드 설명
DefaultEventStream ( IStandardStreamingEventBus eventBus, string topic ) : System
Dispose ( ) : void
Publish ( object evt ) : void

비공개 메소드들

메소드 설명
FlushStreamBuffer ( ) : void

When processing a stream of an unknown size, it becomes a challenge to know when you have dealt with the last object in that stream. This class utilizes the Dispose() method to indicate that stream processing has completed. This is necessary in order to mark the last message with the isLast header flag set to true. The trick here is to ensure that the streamBuffer is not entirely empty when dispose gets called.

메소드 상세

DefaultEventStream() 공개 메소드

public DefaultEventStream ( IStandardStreamingEventBus eventBus, string topic ) : System
eventBus IStandardStreamingEventBus
topic string
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Publish() 공개 메소드

public Publish ( object evt ) : void
evt object
리턴 void

프로퍼티 상세

_log 보호되어 있는 프로퍼티

protected ILog _log
리턴 ILog