增加获取消息channel方法

This commit is contained in:
2024-07-17 12:55:51 +08:00
parent 10f0eb484f
commit 5fc71de49a
2 changed files with 5 additions and 16 deletions

View File

@ -8,7 +8,6 @@
package define
const (
DefaultMemoryPartitionNum = 1 // 默认的分区数量
DefaultMemoryChannelSize = 1024 // 默认的消息channel大小
DefaultMemoryCloseMaxWaitTime = 5000 // 默认最大等待 : 5s
)
@ -19,7 +18,6 @@ const (
//
// Date : 11:26 2024/7/17
type MemoryEventConfig struct {
PartitionNum int `json:"partition_num"` // 多少个分区, 默认值 : 1
MessageBufferSize int `json:"message_buffer_size"` // 消息缓冲区大小
CloseMaxWaitTime int `json:"close_max_wait_time"` // 关闭消息实例, 最大等待时长, 单位 : ms
}