groupcsm

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2016 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int32Slice

type Int32Slice []int32

func (Int32Slice) Len

func (p Int32Slice) Len() int

func (Int32Slice) Less

func (p Int32Slice) Less(i, j int) bool

func (Int32Slice) Swap

func (p Int32Slice) Swap(i, j int)

type T

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

groupConsumer manages a fleet of topic consumers and disposes of those that have been inactive for the `Config.Consumer.DisposeAfter` period of time.

implements `dispatcher.Factory`. implements `dispatcher.Tier`.

func New

func New(namespace *actor.ID, group string, cfg *config.T, saramaClient sarama.Client,
	kazooConn *kazoo.Kazoo, offsetMgrFactory offsetmgr.Factory,
) *T

func (*T) Key

func (gc *T) Key() string

implements `dispatcher.Tier`.

func (*T) KeyOf

func (gc *T) KeyOf(req dispatcher.Request) string

implements `dispatcher.Factory`.

func (*T) NewTier

func (gc *T) NewTier(key string) dispatcher.Tier

implements `dispatcher.Factory`.

func (*T) Requests

func (gc *T) Requests() chan<- dispatcher.Request

implements `dispatcher.Tier`.

func (*T) Start

func (gc *T) Start(stoppedCh chan<- dispatcher.Tier)

implements `dispatcher.Tier`.

func (*T) Stop

func (gc *T) Stop()

implements `dispatcher.Tier`.

func (*T) String

func (gc *T) String() string

String return string ID of this group consumer to be posted in logs.

Jump to

Keyboard shortcuts

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