iconara/mikka — pull request #7 by akira (2012-09-27 20:03:16+00:00)
Title: Add support for declaring supervision strategy on actors

Hello, I added a patch to support supervision strategy in a ruby-like way,
so thought it could be useful, feel free to modify/adapt it.

**Description:**
* Add OneForOneStrategy and AllForOneStrategy classes
* Use a block on supervisor strategy construction to create decider function
which decides what to do based on error
* Block should return :escalate, :stop, :restart, or :resume based on exception

Example usage:
```
# declared in actor
def supervisor_strategy
@strategy ||= Mikka::OneForOneStrategy.new(10, Mikka::Duration["1 minute"]) do |e|
:restart
end
end
```