Class

scala.actors.scheduler

ResizableThreadPoolScheduler

Related Doc: package scheduler

Permalink

class ResizableThreadPoolScheduler extends Thread with IScheduler with TerminationMonitor

This scheduler class uses a ThreadPoolExecutor to execute Actors.

The scheduler attempts to shut down itself and the underlying ThreadPoolExecutor only if terminate is set to true. Otherwise, the scheduler must be shut down explicitly.

Annotations
@deprecated
Deprecated

(Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

Source
ResizableThreadPoolScheduler.scala
Linear Supertypes
TerminationMonitor, IScheduler, Thread, Runnable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResizableThreadPoolScheduler
  2. TerminationMonitor
  3. IScheduler
  4. Thread
  5. Runnable
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResizableThreadPoolScheduler()

    Permalink
  2. new ResizableThreadPoolScheduler(d: Boolean)

    Permalink
  3. new ResizableThreadPoolScheduler(terminate: Boolean, daemon: Boolean)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResizableThreadPoolScheduler to any2stringadd[ResizableThreadPoolScheduler] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ResizableThreadPoolScheduler, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ResizableThreadPoolScheduler to ArrowAssoc[ResizableThreadPoolScheduler] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    AnyRef → Any
  6. val CHECK_FREQ: Int

    Permalink
    Attributes
    protected
  7. var activeActors: Int

    Permalink
    Attributes
    protected
    Definition Classes
    TerminationMonitor
  8. final def asInstanceOf[T0]: T0

    Permalink

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown

    ClassCastException if the receiver object is not an instance of the erasure of type T0.

  9. final def checkAccess(): Unit

    Permalink
    Definition Classes
    Thread