C# Class amp.eventing.streaming.DefaultEventStream

Inheritance: IEventStream
Mostrar archivo Open project: Berico-Technologies/AMP Class Usage Examples

Protected Properties

Property Type Description
_log ILog

Public Methods

Method Description
DefaultEventStream ( IStandardStreamingEventBus eventBus, string topic ) : System
Dispose ( ) : void
Publish ( object evt ) : void

Private Methods

Method Description
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.

Method Details

DefaultEventStream() public method

public DefaultEventStream ( IStandardStreamingEventBus eventBus, string topic ) : System
eventBus IStandardStreamingEventBus
topic string
return System

Dispose() public method

public Dispose ( ) : void
return void

Publish() public method

public Publish ( object evt ) : void
evt object
return void

Property Details

_log protected_oe property

protected ILog _log
return ILog