quartz

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerTrigger

type ControllerTrigger struct {
	// contains filtered or unexported fields
}

ControllerTrigger is a custom trigger, implementing the quartz.Trigger interface. This trigger is used to schedule jobs to be run both: * periodically, after the first polling interval, as would happen with Quartz's `simpleTrigger` * right away, without waiting for that first polling interval to elapse. It also adds the possibility to add a percentage of jitter to the duration of the trigger to avoid situations in which we have many collisions.

func NewControllerTrigger

func NewControllerTrigger(interval time.Duration, jitterPercent int) *ControllerTrigger

func (*ControllerTrigger) Description

func (t *ControllerTrigger) Description() string

func (*ControllerTrigger) NextFireTime

func (t *ControllerTrigger) NextFireTime(prev int64) (int64, error)

Jump to

Keyboard shortcuts

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