state

package
v0.0.0-...-f79c7ce Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TableSinkState

type TableSinkState int32

TableSinkState is state of the table sink.

const (
	TableSinkStateUnknown TableSinkState = iota
	// TableSinkSinking indicate that the table is sinking.
	TableSinkSinking
	// TableSinkStopping means the table sink is stopping, but not guaranteed yet.
	TableSinkStopping
	// TableSinkStopped means sink stop all works.
	TableSinkStopped
)

State for table sink

func (*TableSinkState) CompareAndSwap

func (s *TableSinkState) CompareAndSwap(old, new TableSinkState) bool

CompareAndSwap is just like sync/atomic.Atomic*.CompareAndSwap.

func (*TableSinkState) Load

func (s *TableSinkState) Load() TableSinkState

Load state. This is THREAD-SAFE.

func (*TableSinkState) Store

func (s *TableSinkState) Store(new TableSinkState)

Store state. This is THREAD-SAFE.

func (TableSinkState) String

func (s TableSinkState) String() string

Jump to

Keyboard shortcuts

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