Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TESTING ONLY!: If this channel is not `nil` then partition consumers // will use it to notify when they fetch the very first message. FirstMessageFetchedCh chan *T )
Functions ¶
This section is empty.
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
T ensures exclusive consumption of messages from a topic partition within a particular group. It ensures that a partition is consumed exclusively by first claiming the partition in ZooKeeper. When a fetched message is pulled from the `messages()` channel, it is considered to be consumed and its offset is committed.
func Spawn ¶
func Spawn(parentActDesc *actor.Descriptor, group, topic string, partition int32, cfg *config.Proxy, groupMember *subscriber.T, msgFetcherF msgfetcher.Factory, offsetMgrF offsetmgr.Factory, ) *T
Spawn creates a partition consumer instance and starts its goroutines.
func (*T) IsSafe2Stop ¶ added in v0.14.0
implements `multiplexer.In`
Click to show internal directories.
Click to hide internal directories.