Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocateMessageQueueAveragely ¶
type AllocateMessageQueueAveragely struct { }
func (AllocateMessageQueueAveragely) Allocate ¶
func (strategy AllocateMessageQueueAveragely) Allocate(consumerGroup string, currentCID string, mqAll []*message.MessageQueue, cidAll []string) []*message.MessageQueue
func (AllocateMessageQueueAveragely) GetName ¶
func (strategy AllocateMessageQueueAveragely) GetName() string
type AllocateMessageQueueStrategy ¶
type AllocateMessageQueueStrategy interface { // Allocating by consumer id // consumerGroup current consumer group // currentCID current consumer id // mqAll message queue set in current topic // cidAll consumer set in current consumer group Allocate( consumerGroup string, currentCID string, mqAll []*message.MessageQueue, cidAll []string) []*message.MessageQueue // Algorithm name GetName() string }
Click to show internal directories.
Click to hide internal directories.