summaryrefslogtreecommitdiff
path: root/watcher.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-03 12:28:11 +0300
committerWolfy-J <[email protected]>2019-05-03 12:28:11 +0300
commit9b886ceab6a63e8264f2b2c9d35d76628085dbd6 (patch)
tree5671b75b1e8f04900b54462f6e647a52e0ff6d8b /watcher.go
parent62250fde949d2511b1e030c570bafe2ef3ed2c2d (diff)
added pool watcher capability
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()
}