Documentation ¶
Overview ¶
Package buffer is defined below
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublisherTaskBuffer ¶
type PublisherTaskBuffer interface { // the main executor loop that should be started on a new goroutine Run() // Call to submit into the buffer, will succeed unless we are terminating Submit(task PublisherTask) bool // Call to terminate that will attempt to shutdown gracefully Terminate(timer *time.Timer) bool // Call terminate without waiting for the event loop to complete TerminateNow() }
PublisherTaskBuffer interface
func NewChannelBasedPublisherTaskBuffer ¶
func NewChannelBasedPublisherTaskBuffer(capacity int, sharedTaskQueueGetter func() chan core.SendTask) PublisherTaskBuffer
NewChannelBasedPublisherTaskBuffer function
Click to show internal directories.
Click to hide internal directories.