class GopherAPI extends AnyRef
Api for providing access to channel and selector interfaces.
- Alphabetic
- By Inheritance
- GopherAPI
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new GopherAPI(as: ActorSystem, es: ExecutionContext)
Value Members
-
def
actorSystem: ActorSystem
actor system which was passed during creation
-
def
config: Config
the configuration of the gopher system.
the configuration of the gopher system. By default is contained under 'gopher' key in top-level config.
- def currentFlow: CurrentFlowTermination.type
-
def
executionContext: ExecutionContext
execution context used for managing calculation steps in channels engine.
-
def
futureInput[A](future: Future[A]): FutureInput[A]
Represent Scala future as channel from which we can read one value.
Represent Scala future as channel from which we can read one value.
- See also
gopher.channels.FutureInput
- lazy val idleTimeout: FiniteDuration
-
def
iterableInput[A](iterable: Iterable[A]): Input[A]
Represent Scala iterable as channel, where all values can be readed in order of iteration.
-
macro
def
make[T](args: Any*): T
Generic schema for making objects, which requiere gopherAPI for constructions.
-
def
makeChannel[A](capacity: Int = 0): Channel[A]
obtain channel
obtain channel
val channel = gopherApi.makeChannel[Int]() channel.awrite(1 to 100)
- Annotations
- @inline()
- def makeEffectedChannel[A](ch: Channel[A], threadingPolicy: ThreadingPolicy = ThreadingPolicy.Single): EffectedChannel[A]
-
def
makeEffectedInput[A](in: Input[A], threadingPolicy: ThreadingPolicy = ThreadingPolicy.Single): EffectedInput[A]
create effected input with given thread-policy
- def makeEffectedOutput[A](out: Output[A], threadingPolicy: ThreadingPolicy = ThreadingPolicy.Single): EffectedOutput[A]
- macro def makeTransputer[T <: Transputer]: T
-
macro
def
makeTransputer[T <: Transputer](recoveryPolicy: PartialFunction[Throwable, Directive]): T
create and start instance of transputer with given recovery policy.
create and start instance of transputer with given recovery policy.
- See also
gopher.Transputer
-
macro
def
replicate[T <: Transputer](n: Int): Transputer
create transputer which contains
n
instances ofX
where ports are connected to the appropriate ports of each instance in paraller.create transputer which contains
n
instances ofX
where ports are connected to the appropriate ports of each instance in paraller.val persistStep = replicate[PersistTransputer](nDBConnections)
-
val
select: SelectFactory
obtain select factory
obtain select factory
goopherApi.select.once[String] { case x: a.read => s"${x} from A" case x: b.read => s"${x} from B" case _ => "IDLE" }