scheduler

package
v0.0.0-...-85ede20 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2015 License: MPL-2.0 Imports: 4 Imported by: 3

Documentation

Overview

The package is useless

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueScheduler

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

func NewQueueScheduler

func NewQueueScheduler(rmDuplicate bool) *QueueScheduler

func (*QueueScheduler) Count

func (this *QueueScheduler) Count() int

func (*QueueScheduler) Poll

func (this *QueueScheduler) Poll() *request.Request

func (*QueueScheduler) Push

func (this *QueueScheduler) Push(requ *request.Request)

type Scheduler

type Scheduler interface {
	Push(requ *request.Request)
	Poll() *request.Request
	Count() int
}

type SimpleScheduler

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

func NewSimpleScheduler

func NewSimpleScheduler() *SimpleScheduler

func (*SimpleScheduler) Count

func (this *SimpleScheduler) Count() int

func (*SimpleScheduler) Poll

func (this *SimpleScheduler) Poll() *request.Request

func (*SimpleScheduler) Push

func (this *SimpleScheduler) Push(requ *request.Request)

Jump to

Keyboard shortcuts

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