queues

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorePriorityQueue

type CorePriorityQueue[T any] struct {
	// contains filtered or unexported fields
}

func NewCorePriorityQueue

func NewCorePriorityQueue[T any](options schema.GPQOptions, diskCache *disk.Disk[T], deleteChan chan schema.DeleteMessage) CorePriorityQueue[T]

func (*CorePriorityQueue[T]) ActiveBuckets

func (cpq *CorePriorityQueue[T]) ActiveBuckets() uint

func (*CorePriorityQueue[T]) Dequeue

func (cpq *CorePriorityQueue[T]) Dequeue() (*schema.Item[T], error)

func (*CorePriorityQueue[T]) DequeueBatch

func (cpq *CorePriorityQueue[T]) DequeueBatch(batchSize uint) ([]*schema.Item[T], []error)

func (*CorePriorityQueue[T]) Enqueue

func (cpq *CorePriorityQueue[T]) Enqueue(data *schema.Item[T]) error

func (*CorePriorityQueue[T]) EnqueueBatch

func (cpq *CorePriorityQueue[T]) EnqueueBatch(data []*schema.Item[T]) []error

func (*CorePriorityQueue[T]) ItemsInQueue

func (cpq *CorePriorityQueue[T]) ItemsInQueue() uint

func (*CorePriorityQueue[T]) Prioritize

func (cpq *CorePriorityQueue[T]) Prioritize() (removed uint, escalated uint, err error)

Directories

Path Synopsis
Package heap provides heap operations for any type that implements heap.Interface.
Package heap provides heap operations for any type that implements heap.Interface.

Jump to

Keyboard shortcuts

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