| Portability | non-portable |
|---|---|
| Stability | experimental |
| Safe Haskell | None |
Network.Mom.Patterns.Broker.Broker
Description
Majordomo Broker
- withBroker :: Context -> Service -> Msec -> String -> String -> OnError_ -> (Controller -> IO r) -> IO r
Documentation
withBroker :: Context -> Service -> Msec -> String -> String -> OnError_ -> (Controller -> IO r) -> IO rSource
Start a broker as a background process
-
Context- The zeromq context -
Service- Service name - the service name is for debugging only, there is no relation whatsoever to the service of the Majordomo Protocol. -
Msec- The heartbeat interval in milliseconds, which should be equal for all workers and the broker -
String- The address clients connect to -
String- The address servers connect to -
OnError_- Error handler -
Controla - Control action