sequencer

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("sequencer closed")
View Source
var ErrTimedOut = errors.New("operation timed out")

Functions

This section is empty.

Types

type Sequencer

type Sequencer interface {
	PutSequenced(seq uint32, v interface{}) error
	GetNext() interface{}
	GetNextWithDeadline(t time.Time) (interface{}, error)
	Close()
}

this is simple queue which sorts items according to their sequence number and waits until sequence can be completed without gaps

func NewNoopSequencer added in v0.14.23

func NewNoopSequencer(channelDepth int) Sequencer

func NewSingleWriterSeq

func NewSingleWriterSeq(maxOutOfOrder uint32) Sequencer

Jump to

Keyboard shortcuts

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