Documentation ¶
Index ¶
Constants ¶
View Source
const MININT = time.Second
MININT is the minimal interval for delete to run. In most cases, it is better to be set as 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggrTimer ¶
type AggrTimer struct {
// contains filtered or unexported fields
}
func NewAggrTimer ¶
func (*AggrTimer) Schedule ¶
func (timer *AggrTimer) Schedule(t AggrTimerTask)
type AggrTimerTask ¶
func NewAggrTimerTask ¶
func NewAggrTimerTask(when time.Time, val interface{}) AggrTimerTask
func (AggrTimerTask) IsEmpty ¶
func (t AggrTimerTask) IsEmpty() bool
func (AggrTimerTask) OK ¶
func (t AggrTimerTask) OK() bool
func (AggrTimerTask) Until ¶
func (t AggrTimerTask) Until() time.Duration
type BasicTimer ¶
type BasicTimer struct {
// contains filtered or unexported fields
}
func NewBasicTimer ¶
func NewBasicTimer(chSize int, quit chan struct{}, wg *sync.WaitGroup) *BasicTimer
func (*BasicTimer) Schedule ¶
func (timer *BasicTimer) Schedule(t *Task)
func (*BasicTimer) Start ¶
func (timer *BasicTimer) Start()
type ConcurrentBasicTimer ¶
type ConcurrentBasicTimer struct {
// contains filtered or unexported fields
}
func NewConcurrentBasicTimer ¶
func NewConcurrentBasicTimer(partitionNumber int, chSizePerPartition int) *ConcurrentBasicTimer
func (*ConcurrentBasicTimer) Close ¶
func (c *ConcurrentBasicTimer) Close()
func (*ConcurrentBasicTimer) Initialize ¶
func (c *ConcurrentBasicTimer) Initialize(partitionNumber int, chSizePerPartition int)
func (*ConcurrentBasicTimer) Schedule ¶
func (c *ConcurrentBasicTimer) Schedule(t *Task)
func (*ConcurrentBasicTimer) Start ¶
func (c *ConcurrentBasicTimer) Start()
Click to show internal directories.
Click to hide internal directories.