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