summaryrefslogtreecommitdiff
path: root/pkg/worker_watcher/container/interface.go
blob: 532bace94ae18bf9c40b956d1dff6c7a13026efb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()
}