Support config of custom router. See #1623

This commit is contained in:
Patrik Nordwall 2012-01-12 16:37:08 +01:00
parent 1f3926fa0e
commit 8d10d44929
7 changed files with 69 additions and 13 deletions

View file

@ -256,6 +256,14 @@ If you are interested in how to use the VoteCountRouter it looks like this:
.. includecode:: code/akka/docs/jrouting/CustomRouterDocTestBase.java#crTest
Configured Custom Router
************************
It is possible to define configuration properties for custom routers. In the ``router`` property of the deployment
configuration you define the fully qualified class name of the router class. The router class must extend
``akka.routing.CustomRouterConfig`` and and have constructor with ``com.typesafe.config.Config`` parameter.
The deployment section of the configuration is passed to the constructor.
Custom Resizer
**************