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 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`.
Click to show internal directories.
Click to hide internal directories.