publish

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishOption

type PublishOption func(*publishOptions)

func IsSink added in v0.5.6

func IsSink() PublishOption

IsSink indicates it's a sink publisher

func IsSource added in v0.5.6

func IsSource() PublishOption

IsSource indicates it's a source publisher

func WithAutoRefreshHeartbeatDisabled added in v0.5.2

func WithAutoRefreshHeartbeatDisabled() PublishOption

func WithDelay added in v0.5.6

func WithDelay(t time.Duration) PublishOption

WithDelay sets the watermark delay

func WithPodHeartbeatRate

func WithPodHeartbeatRate(rate int64) PublishOption

type Publisher

type Publisher interface {
	io.Closer
	// PublishWatermark publishes the watermark.
	PublishWatermark(w wmb.Watermark, o isb.Offset, toVertexPartitionIdx int32)
	// PublishIdleWatermark publishes the idle watermark.
	PublishIdleWatermark(wm wmb.Watermark, o isb.Offset, toVertexPartitionIdx int32)
	// GetLatestWatermark returns the latest published watermark.
	GetLatestWatermark() wmb.Watermark
}

Publisher interface defines how to publish Watermark for a ProcessorEntitier.

func NewPublish

func NewPublish(ctx context.Context, processorEntity entity.ProcessorEntitier, watermarkStores store.WatermarkStore, toVertexPartitionCount int32, inputOpts ...PublishOption) Publisher

NewPublish returns `Publish`.

Jump to

Keyboard shortcuts

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