rebalance

package
v0.0.0-...-1897b02 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	BROKER_REBLANCE_LOCKMAXLIVETIME = "boltmq.broker.rebalance.lockMaxLiveTime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LockEntry

type LockEntry struct {
	ClientId            string
	LastUpdateTimestamp int64
}

LockEntry LockEntry Author: rongzhihong Since: 2017/9/19

func NewLockEntry

func NewLockEntry() *LockEntry

func (*LockEntry) IsExpired

func (entry *LockEntry) IsExpired() bool

func (*LockEntry) IsLocked

func (entry *LockEntry) IsLocked(clientId string) bool

type LockEntryTable

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

LockEntryTable.lock.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 *LockEntry))

func (*LockEntryTable) Get

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

func (*LockEntryTable) Put

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

func (*LockEntryTable) Remove

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

type MQLockTable

type MQLockTable struct {
	// 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