sgns::processing::ProcessingSubTaskQueueChannel¶
#include <processing_subtask_queue_channel.hpp>
Inherited by sgns::processing::ProcessingSubTaskQueueChannelPubSub
Public Functions¶
| Name | |
|---|---|
| virtual | ~ProcessingSubTaskQueueChannel() =default |
| virtual void | RequestQueueOwnership(const std::string & nodeId) =0 |
| virtual void | PublishQueue(std::shared_ptr< SGProcessing::SubTaskQueue > queue) =0 |
| virtual size_t | GetActiveNodesCount() const =0 |
| virtual std::vector< libp2p::peer::PeerId > | GetActiveNodes() const =0 |
Detailed Description¶
Subtask queue channel interface which is used for in-memory queue synchronization
Public Functions Documentation¶
function ~ProcessingSubTaskQueueChannel¶
function RequestQueueOwnership¶
Reimplemented by: sgns::processing::ProcessingSubTaskQueueChannelPubSub::RequestQueueOwnership
Sends a request for queue ownership nodeId - requestor node id
function PublishQueue¶
Reimplemented by: sgns::processing::ProcessingSubTaskQueueChannelPubSub::PublishQueue
Publishes queue to all queue consumers queue = subtask queue
function GetActiveNodesCount¶
Return: number of nodes in the channel
Reimplemented by: sgns::processing::ProcessingSubTaskQueueChannelPubSub::GetActiveNodesCount
Returns the number of active nodes in the channel
function GetActiveNodes¶
Return: vector of nodes in the channel
Reimplemented by: sgns::processing::ProcessingSubTaskQueueChannelPubSub::GetActiveNodes
Get the number of active nodes in the channel
Updated on 2026-03-04 at 13:10:43 -0800