summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher/container/interface.go
blob: 0e648d347b88947181fcff95acb305ace2887474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package container

import (
	"github.com/spiral/roadrunner/v2/pkg/worker"
)

// Vector interface represents vector container
type Vector interface {
	// Enqueue used to put worker to the vector
	Enqueue(worker.BaseProcess)
	// Dequeue used to get worker from the vector
	Dequeue() (worker.BaseProcess, bool)
	// Destroy used to stop releasing the workers
	Destroy()
}