Packages

trait ModuleContext[E <: Env[E], MessageT] extends NamedLogging with FutureContext[E]

An abstraction of actor contexts for deterministic simulation testing purposes.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ModuleContext
  2. FutureContext
  3. NamedLogging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def abort(failure: Throwable): Nothing
  2. abstract def abort(msg: String): Nothing
  3. abstract def abort(): Nothing
  4. abstract def become(module: Module[E, MessageT]): Unit
  5. abstract def blockingAwait[X](future: E.FutureUnlessShutdownT[X], duration: FiniteDuration): X
  6. abstract def blockingAwait[X](future: E.FutureUnlessShutdownT[X]): X
  7. abstract def delayedEventTraced(delay: FiniteDuration, messageT: MessageT)(implicit traceContext: TraceContext, metricsContext: MetricsContext): CancellableEvent
  8. abstract def futureContext: FutureContext[E]
  9. abstract def loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    NamedLogging
  10. abstract def newModuleRef[NewModuleMessageT](moduleName: ModuleName): E.ModuleRefT[NewModuleMessageT]
  11. abstract def pipeToSelfInternal[X](futureUnlessShutdown: E.FutureUnlessShutdownT[X])(fun: (Try[X]) => Option[MessageT])(implicit traceContext: TraceContext, metricsContext: MetricsContext): Unit
    Attributes
    protected
  12. abstract def self: E.ModuleRefT[MessageT]
  13. abstract def setModule[OtherModuleMessageT](moduleRef: E.ModuleRefT[OtherModuleMessageT], module: Module[E, OtherModuleMessageT]): Unit

    Spawns a new module.

    Spawns a new module. The module handler object must not be spawned more than once, lest it potentially cause a violation of the actor model, as its state could be accessed concurrently.

  14. abstract def stop(onStop: () => Unit = () => ()): Unit
  15. abstract def withNewTraceContext[A](fn: (TraceContext) => A): A

    Similar to TraceContext.withNewTraceContext but can be deterministically simulated

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def delayedEvent(delay: FiniteDuration, message: MessageT)(implicit metricsContext: MetricsContext): CancellableEvent
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  10. final def flatMapFuture[R1, R2](future1: E.FutureUnlessShutdownT[R1], future2: PureFun[R1, E.FutureUnlessShutdownT[R2]]): E.FutureUnlessShutdownT[R2]

    flatMapFuture requires a PureFun instead of a normal scala.Function1 for similar reason as mapFuture

    flatMapFuture requires a PureFun instead of a normal scala.Function1 for similar reason as mapFuture

    Definition Classes
    ModuleContextFutureContext
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  15. final def mapFuture[X, Y](future: E.FutureUnlessShutdownT[X])(fun: PureFun[X, Y]): E.FutureUnlessShutdownT[Y]

    mapFuture requires a PureFun instead of a normal scala.Function1 since we need to be careful not to mutate state of the modules in the Env#FutureUnlessShutdownT, as this would violate the assumptions we use when writing Modules.

    mapFuture requires a PureFun instead of a normal scala.Function1 since we need to be careful not to mutate state of the modules in the Env#FutureUnlessShutdownT, as this would violate the assumptions we use when writing Modules.

    Definition Classes
    ModuleContextFutureContext
  16. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. def pipeToSelf[X](futureUnlessShutdown: E.FutureUnlessShutdownT[X])(fun: (Try[X]) => Option[MessageT])(implicit traceContext: TraceContext, metricsContext: MetricsContext): Unit
  22. final def pureFuture[X](x: X): E.FutureUnlessShutdownT[X]
    Definition Classes
    ModuleContextFutureContext
  23. final def sequenceFuture[A, F[_]](futures: F[E.FutureUnlessShutdownT[A]])(implicit ev: Traverse[F]): E.FutureUnlessShutdownT[F[A]]
    Definition Classes
    ModuleContextFutureContext
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. final def timeFuture[X](timer: Timer, futureUnlessShutdown: => E.FutureUnlessShutdownT[X])(implicit metricsContext: MetricsContext): E.FutureUnlessShutdownT[X]
    Definition Classes
    ModuleContextFutureContext
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def zipFuture[X, Y, Z](future1: E.FutureUnlessShutdownT[X], future2: E.FutureUnlessShutdownT[Y], future3: E.FutureUnlessShutdownT[Z]): E.FutureUnlessShutdownT[(X, Y, Z)]
    Definition Classes
    ModuleContextFutureContext
  31. final def zipFuture[X, Y](future1: E.FutureUnlessShutdownT[X], future2: E.FutureUnlessShutdownT[Y]): E.FutureUnlessShutdownT[(X, Y)]
    Definition Classes
    ModuleContextFutureContext

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from FutureContext[E]

Inherited from NamedLogging

Inherited from AnyRef

Inherited from Any

Ungrouped