s_mach.concurrent.impl

ConcurrentTestContextImpl

class ConcurrentTestContextImpl extends ConcurrentTestContext

Linear Supertypes
ConcurrentTestContext, ScheduledExecutionContext, ExecutionContext, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConcurrentTestContextImpl
  2. ConcurrentTestContext
  3. ScheduledExecutionContext
  4. ExecutionContext
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConcurrentTestContextImpl()(implicit ec: ExecutionContext, sec: ScheduledExecutionContext)

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. val _activeExecutionCount: AtomicInteger

  5. val _delayError_ns: AtomicLong

  6. def activeExecutionCount: Int

    returns

    the current number of active Runnables and scheduled tasks being processed

    Definition Classes
    ConcurrentTestContextImplConcurrentTestContext
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def delay(delay_ns: Long): Unit

    precisely delay for a period of time in nanoseconds.

    precisely delay for a period of time in nanoseconds. If the elapsed time differs from the requested the delay, the error in delay is accumulated in delayError_ns

    Definition Classes
    ConcurrentTestContextImplConcurrentTestContext
  10. def delayError_ns: Long

    returns

    the accumulated delay error

    Definition Classes
    ConcurrentTestContextImplConcurrentTestContext
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def execute(runnable: Runnable): Unit

    Definition Classes
    ConcurrentTestContextImpl → ExecutionContext
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def prepare(): ExecutionContext

    Definition Classes
    ExecutionContext
  22. def reportFailure(cause: Throwable): Unit

    Report a failure.

    Report a failure. Used to report failures during periodic tasks

    cause

    Definition Classes
    ConcurrentTestContextImplScheduledExecutionContext → ExecutionContext
  23. implicit val sched: SerializationSchedule[String]

    returns

    the SerializationSchedule for the context

    Definition Classes
    ConcurrentTestContextImplConcurrentTestContext
  24. def schedule[A](delay: Duration)(f: ⇒ A): DelayedFuture[A]

    Create a DelayedFuture that executes the supplied function after the given delay

    Create a DelayedFuture that executes the supplied function after the given delay

    delay

    the time from now to delay execution

    f

    the function to execute

    returns

    a DelayedFuture that can be used to extract result or cancel (only before it has been started)

    Definition Classes
    ConcurrentTestContextImplScheduledExecutionContext
    Exceptions thrown
    RejectedExecutionException

    if the task cannot be scheduled for execution

  25. def scheduleAtFixedRate[U](initialDelay: Duration, period: Duration)(task: () ⇒ U): PeriodicTask

    Creates a PeriodicTask that executes first after the given initial delay, and subsequently with the given period.

    Creates a PeriodicTask that executes first after the given initial delay, and subsequently with the given period. PeriodicTask may stopped using the cancel method. If a failure occurs while processing the task, the task is automatically cancelled. If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.

    initialDelay

    the time to delay first execution

    period

    the period between successive executions

    task

    the task to execute

    returns

    a PeriodicTask

    Definition Classes
    ConcurrentTestContextImplScheduledExecutionContext
    Exceptions thrown
    IllegalArgumentException

    if period less than or equal to zero

    RejectedExecutionException

    if the task cannot be scheduled for execution

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def waitForActiveExecutionCount(_activeRunnableCount: Int): Unit

    Sleep until the active execution count is equal to or less than the specified value

    Sleep until the active execution count is equal to or less than the specified value

    Definition Classes
    ConcurrentTestContext

Inherited from ConcurrentTestContext

Inherited from ScheduledExecutionContext

Inherited from ExecutionContext

Inherited from AnyRef

Inherited from Any

Ungrouped