summaryrefslogtreecommitdiff
path: root/watcher.go
blob: 4527fe686bec9473ced7993c8330f248243c67a5 (plain)
1
2
3
4
5
6
7
8
9
10
package roadrunner

// Watcher observes pool state and decides if any worker must be destroyed.
type Watcher interface {
	// Lock watcher on given pool instance.
	Attach(p Pool) Watcher

	// Detach pool watching.
	Detach()
}