rebalance

package
v0.0.0-...-130f5e9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockEntryTable

type LockEntryTable struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

LockEntryTable LockEntryTable Author rongzhihong Since 2017/9/20

func NewLockEntryTable

func NewLockEntryTable() *LockEntryTable

func (*LockEntryTable) Foreach

func (lockTable *LockEntryTable) Foreach(fn func(k *message.MessageQueue, v *body.LockEntry))

func (*LockEntryTable) Get

func (lockTable *LockEntryTable) Get(key *message.MessageQueue) *body.LockEntry

func (*LockEntryTable) Put

func (lockTable *LockEntryTable) Put(key *message.MessageQueue, value *body.LockEntry)

func (*LockEntryTable) Remove

func (lockTable *LockEntryTable) Remove(key *message.MessageQueue)

type MqLockTable

type MqLockTable struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

MqLockTable MqLockTable Author rongzhihong Since 2017/9/20

func NewMqLockTable

func NewMqLockTable() *MqLockTable

func (*MqLockTable) Foreach

func (lockTable *MqLockTable) Foreach(fn func(k string, v *LockEntryTable))

func (*MqLockTable) Get

func (lockTable *MqLockTable) Get(key string) *LockEntryTable

func (*MqLockTable) Put

func (lockTable *MqLockTable) Put(key string, value *LockEntryTable)

func (*MqLockTable) Remove

func (lockTable *MqLockTable) Remove(key string)

Jump to

Keyboard shortcuts

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