Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object WebClientActor extends Logging {
- private var config: WebClientConfig = null
- private lazy val pool = {
- if(config == null)
- throw new Exception("Attempt to use WebClientActor before configuration")
- actorOf(new WebClientActorPool(config)).start()
- }
- def initialize(webConfig: WebClientConfig) {
- log.debug("Initializing WebClientActor with configs {}...", webConfig)
- config = webConfig
- }
- def ! (report: AnalyticsReport) { pool ! report }
- def ! (request: ClientProxyRequest) { pool ! request }
- def ! (request: FrameworkRequest) { pool ! request }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement