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

ru.primetalk.synapse.akka.ActorContainerDsl.scala Maven / Gradle / Ivy

Go to download

SynapseGrid is a framework for constructing reactive real-time immutable data flow systems. -core contains everything to run a single-threaded system, -akka contains everything to run systems over Akka actors, -slf4j - enables logging, -concurrent - running systems directly over ExecutorContext without the need for Akka, -examples - a few test systems. Also there are -frames - a framework for type construction with meta information (see relations.scala). -typed-expressions - a framework for defining parsers and generators for natural language. The current version is 1.4.0

The newest version!
package ru.primetalk.synapse.akka

import ru.primetalk.synapse.core._
import akka.actor._
/** API for a system that can contain actor subsystems.*/
trait ActorContainerDsl {
  /** Prefer to use ActorComponent directly.
    *
    * @return the subsystem itself
    */
  def addActorSubsystem[T](subsystem: T,
                           supervisorStrategy: SupervisorStrategy = defaultSupervisorStrategy)(implicit sb: SystemBuilder, ev: T => StaticSystem): T = {
    sb.addComponent(new ActorComponent(subsystem, supervisorStrategy))
    subsystem
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy