object ConcurrentRestrictions
- Alphabetic
- By Inheritance
- ConcurrentRestrictions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
val
All: Tag
A standard tag describing the total number of tasks.
-
val
Untagged: Tag
A standard tag describing the number of tasks that do not otherwise have any tags.
-
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.
-
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.
- def limitTotal[A](i: Int): ConcurrentRestrictions[A]
-
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
- val tagsKey: AttributeKey[TagMap]
-
def
unrestricted[A]: ConcurrentRestrictions[A]
A ConcurrentRestrictions instance that places no restrictions on concurrently executing tasks.