C# Class amp.eventing.streaming.DefaultEventStream

Inheritance: IEventStream
Afficher le fichier Open project: Berico-Technologies/AMP Class Usage Examples

Protected Properties

Свойство Type Description
_log ILog

Méthodes publiques

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

Private Methods

Méthode 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 méthode

public DefaultEventStream ( IStandardStreamingEventBus eventBus, string topic ) : System
eventBus IStandardStreamingEventBus
topic string
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Publish() public méthode

public Publish ( object evt ) : void
evt object
Résultat void

Property Details

_log protected_oe property

protected ILog _log
Résultat ILog