gomq

package
v1.2.106 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

消息中间件操作 MQ

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockingQueue

type BlockingQueue struct {
	// contains filtered or unexported fields
}

func NewBlockingQueue

func NewBlockingQueue(size int) *BlockingQueue

NewBlockingQueue 创建一个新的阻塞队列

func (*BlockingQueue) Dequeue

func (bq *BlockingQueue) Dequeue() interface{}

Dequeue 从队列中移除并返回一个元素

func (*BlockingQueue) Enqueue

func (bq *BlockingQueue) Enqueue(item interface{})

Enqueue 将元素添加到队列

func (*BlockingQueue) Size

func (bq *BlockingQueue) Size() int

Size 返回队列中的元素数量

func (*BlockingQueue) Wait

func (bq *BlockingQueue) Wait()

Wait 等待所有元素被处理

Directories

Path Synopsis
go-rocketmq

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL