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
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 ¶
func (b *TimerRuntimeBuilder) Build() *TimerGroupRuntime
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
Click to show internal directories.
Click to hide internal directories.