summaryrefslogtreecommitdiff
path: root/watcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'watcher.go')
-rw-r--r--watcher.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/watcher.go b/watcher.go
index 7d9c6060..4527fe68 100644
--- a/watcher.go
+++ b/watcher.go
@@ -1,6 +1,10 @@
package roadrunner
-// disconnect??
+// Watcher observes pool state and decides if any worker must be destroyed.
type Watcher interface {
- // ?? lock on pool
+ // Lock watcher on given pool instance.
+ Attach(p Pool) Watcher
+
+ // Detach pool watching.
+ Detach()
}