Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publish ¶
type Publish struct {
// contains filtered or unexported fields
}
Publish publishes the watermark for a processor entity.
func NewPublish ¶
func NewPublish(ctx context.Context, processorEntity processor.ProcessorEntitier, hbStore store.WatermarkKVStorer, otStore store.WatermarkKVStorer, inputOpts ...PublishOption) *Publish
NewPublish returns `Publish`.
func (*Publish) GetLatestWatermark ¶
GetLatestWatermark returns the latest watermark for that processor.
func (*Publish) PublishWatermark ¶
PublishWatermark publishes watermark and will retry until it can succeed. It will not publish if the new-watermark is less than the current head watermark.
func (*Publish) StopPublisher ¶ added in v0.5.2
func (p *Publish) StopPublisher()
StopPublisher stops the publisher and cleans up the data associated with key.
type PublishOption ¶
type PublishOption func(*publishOptions)
func WithAutoRefreshHeartbeatDisabled ¶ added in v0.5.2
func WithAutoRefreshHeartbeatDisabled() PublishOption
func WithBucketConfigs ¶
func WithBucketConfigs(cfgs *nats.KeyValueConfig) PublishOption
func WithPodHeartbeatRate ¶
func WithPodHeartbeatRate(rate int64) PublishOption
type Publisher ¶
type Publisher interface { // PublishWatermark publishes the watermark. PublishWatermark(processor.Watermark, isb.Offset) // GetLatestWatermark returns the latest published watermark. GetLatestWatermark() processor.Watermark // StopPublisher stops the publisher StopPublisher() }
Publisher interface defines how to publish Watermark for a ProcessorEntity.
Click to show internal directories.
Click to hide internal directories.