All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.io.UdpConnectedManager.scala Maven / Gradle / Ivy

/**
 * Copyright (C) 2009-2014 Typesafe Inc. 
 */
package akka.io

import akka.actor.Props
import akka.io.UdpConnected.Connect

/**
 * INTERNAL API
 */
private[io] class UdpConnectedManager(udpConn: UdpConnectedExt)
  extends SelectionHandler.SelectorBasedManager(udpConn.settings, udpConn.settings.NrOfSelectors) {

  def receive = workerForCommandHandler {
    case c: Connect ⇒
      val commander = sender() // cache because we create a function that will run asyncly
      registry ⇒ Props(classOf[UdpConnection], udpConn, registry, commander, c)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy