mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 12:04:56 +02:00
Create queue producers in pipeline phase (#8643)
This commit is contained in:
@@ -22,7 +22,7 @@ class DummyQueueProducer<T> implements PlatformQueueProducer<T> {
|
||||
* A dummy implementation of PlatformQueue for testing and development
|
||||
*/
|
||||
export class DummyQueue implements PlatformQueue {
|
||||
createProducer<T>(ctx: MeasureContext, topic: QueueTopic | string): PlatformQueueProducer<T> {
|
||||
getProducer<T>(ctx: MeasureContext, topic: QueueTopic | string): PlatformQueueProducer<T> {
|
||||
return new DummyQueueProducer<T>()
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ export interface ConsumerControl {
|
||||
}
|
||||
|
||||
export interface PlatformQueue {
|
||||
createProducer: <T>(ctx: MeasureContext, topic: QueueTopic | string) => PlatformQueueProducer<T>
|
||||
getProducer: <T>(ctx: MeasureContext, topic: QueueTopic | string) => PlatformQueueProducer<T>
|
||||
|
||||
/**
|
||||
* Create a consumer for a topic.
|
||||
|
||||
Reference in New Issue
Block a user