runtime

package
v0.0.0-...-6e93ed8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimerGroupRuntime

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

TimerGroupRuntime is the runtime to manage timers It will run a background loop to detect the timers which are up to time and trigger events for them.

func (*TimerGroupRuntime) Running

func (rt *TimerGroupRuntime) Running() bool

Running returns whether the runtime is running

func (*TimerGroupRuntime) Start

func (rt *TimerGroupRuntime) Start()

Start starts the TimerGroupRuntime

func (*TimerGroupRuntime) Stop

func (rt *TimerGroupRuntime) Stop()

Stop stops the runtime

type TimerRuntimeBuilder

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

TimerRuntimeBuilder is used to TimerRuntimeBuilder

func NewTimerRuntimeBuilder

func NewTimerRuntimeBuilder(groupID string, store *api.TimerStore) *TimerRuntimeBuilder

NewTimerRuntimeBuilder creates a new TimerRuntimeBuilder

func (*TimerRuntimeBuilder) Build

Build returns the TimerGroupRuntime

func (*TimerRuntimeBuilder) RegisterHookFactory

func (b *TimerRuntimeBuilder) RegisterHookFactory(hookClass string, factory api.HookFactory) *TimerRuntimeBuilder

RegisterHookFactory registers a hook factory for specified hookClass

func (*TimerRuntimeBuilder) SetCond

func (b *TimerRuntimeBuilder) SetCond(cond api.Cond) *TimerRuntimeBuilder

SetCond sets the timer condition for the TimerGroupRuntime to manage timers

Jump to

Keyboard shortcuts

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