Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteBufferPool ¶
type ByteBufferPool struct {
// contains filtered or unexported fields
}
ByteBufferPool 字节缓冲池
func NewByteBufferPool ¶
func NewByteBufferPool(metrics *observability.MetricsRecorder) *ByteBufferPool
NewByteBufferPool 创建字节缓冲池
func (*ByteBufferPool) ReportMetrics ¶ added in v0.3.1
func (p *ByteBufferPool) ReportMetrics(ctx context.Context)
ReportMetrics 报告缓冲池指标
type MessagePool ¶
type MessagePool struct {
// contains filtered or unexported fields
}
MessagePool 消息对象池
func NewMessagePool ¶
func NewMessagePool(metrics *observability.MetricsRecorder) *MessagePool
NewMessagePool 创建消息池
func (*MessagePool) ReportMetrics ¶ added in v0.3.1
func (p *MessagePool) ReportMetrics(ctx context.Context)
ReportMetrics 定期计算和上报池统计信息
Click to show internal directories.
Click to hide internal directories.