Files
spark/src/DataStreamSuite/PubSub/Server/IInternalPublisherQueue.cs
T
John Colvin 51d934de27 Add PubSub service modules designed for Dependency Injection
* Get rid of JsonPropertyName attributes in PubSubConfig
  - The Dependency Injection framework (based around dotnet ApplicationBuilder)
    does not support this attribute, and maps property names verbatim to json fields.

* Change PubSubServer json fields to match cs class property names verbatim
2024-11-25 15:26:57 +00:00

17 lines
527 B
C#

namespace Bts.PubSub.Server;
using bts;
using System;
using System.Collections.Generic;
/// <summary>
/// An instance of this interface is passed to the (<see cref="InternalPublisher"/>) so it can enqueue
/// messages to be published. It is also passed to the <see cref="BCG.PubSubMessageReactor"/>, so it
/// can dequeue these messages and send them over the wire.
/// </summary>
interface IInternalPublisherQueue {
void Enqueue(PublishMsg message);
List<PublishMsg> DequeueMultiple(TimeSpan ts, int maxElements);
}