Packages

object ConcurrentRestrictions

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConcurrentRestrictions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Tag(name: String) extends Product with Serializable

    A key object used for associating information with a task.

  2. type TagMap = Map[Tag, Int]

Value Members

  1. val All: Tag

    A standard tag describing the total number of tasks.

  2. val Untagged: Tag

    A standard tag describing the number of tasks that do not otherwise have any tags.

  3. def completionService[A, R](backing: Executor, tags: ConcurrentRestrictions[A], warn: (String) ⇒ Unit): CompletionService[A, R]

    Constructs a CompletionService suitable for backing task execution based on the provided restrictions on concurrent task execution and using the provided Executor to manage execution on threads.

  4. def completionService[A, R](tags: ConcurrentRestrictions[A], warn: (String) ⇒ Unit): (CompletionService[A, R], () ⇒ Unit)

    Constructs a CompletionService suitable for backing task execution based on the provided restrictions on concurrent task execution.

    Constructs a CompletionService suitable for backing task execution based on the provided restrictions on concurrent task execution.

    A

    the task type

    R

    the type of data that will be computed by the CompletionService.

    returns

    a pair, with _1 being the CompletionService and _2 a function to shutdown the service.

  5. def limitTotal[A](i: Int): ConcurrentRestrictions[A]
  6. def tagged[A](get: (A) ⇒ TagMap, validF: (TagMap) ⇒ Boolean): ConcurrentRestrictions[A]

    Implements concurrency restrictions on tasks based on Tags.

    Implements concurrency restrictions on tasks based on Tags.

    A

    type of a task

    get

    extracts tags from a task

    validF

    defines whether a set of tasks are allowed to execute concurrently based on their merged tags

  7. val tagsKey: AttributeKey[TagMap]
  8. def unrestricted[A]: ConcurrentRestrictions[A]

    A ConcurrentRestrictions instance that places no restrictions on concurrently executing tasks.