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

akka.contrib.d3.writeside.LocalAggregateManagerProvider.scala Maven / Gradle / Ivy

package akka.contrib.d3.writeside

import akka.actor._
import akka.contrib.d3._

import scala.reflect.ClassTag

private[d3] final class LocalAggregateManagerProvider(
    system: ExtendedActorSystem
) extends AggregateManagerProvider {
  override def aggregateManagerRef[E <: AggregateEntity](
    entityFactory: E#Id ⇒ E,
    name:          Option[String],
    settings:      AggregateSettings
  )(
    implicit
    ect: ClassTag[E]
  ): ActorRef = {
    val aggregateName = name.getOrElse(ect.runtimeClass.getSimpleName.toLowerCase)
    system.actorOf(AggregateManager.props(entityFactory, settings), aggregateName)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy